AppOpsManager.CheckOpNoThrow Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| CheckOpNoThrow(String, Int32, String) |
Like |
| CheckOpNoThrow(String, Int32, String, String) |
Like |
CheckOpNoThrow(String, Int32, String)
Like #checkOp(String, int, String) but instead of throwing a
SecurityException it returns #MODE_ERRORED.
[Android.Runtime.Register("checkOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetCheckOpNoThrow_Ljava_lang_String_ILjava_lang_String_Handler")]
public virtual Android.App.AppOpsManagerMode CheckOpNoThrow(string op, int uid, string packageName);
[<Android.Runtime.Register("checkOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetCheckOpNoThrow_Ljava_lang_String_ILjava_lang_String_Handler")>]
abstract member CheckOpNoThrow : string * int * string -> Android.App.AppOpsManagerMode
override this.CheckOpNoThrow : string * int * string -> Android.App.AppOpsManagerMode
Parameters
- op
- String
- uid
- Int32
- packageName
- String
Returns
- Attributes
Remarks
Like #checkOp(String, int, String) but instead of throwing a SecurityException it returns #MODE_ERRORED.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
CheckOpNoThrow(String, Int32, String, String)
Like #checkOp(String, int, String, String) but instead of throwing a
SecurityException it returns #MODE_ERRORED.
[Android.Runtime.Register("checkOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)I", "GetCheckOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Handler", ApiSince=36)]
public virtual Android.App.AppOpsManagerMode CheckOpNoThrow(string op, int uid, string packageName, string? attributionTag);
[<Android.Runtime.Register("checkOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)I", "GetCheckOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Handler", ApiSince=36)>]
abstract member CheckOpNoThrow : string * int * string * string -> Android.App.AppOpsManagerMode
override this.CheckOpNoThrow : string * int * string * string -> Android.App.AppOpsManagerMode
Parameters
- op
- String
- uid
- Int32
- packageName
- String
- attributionTag
- String
Returns
- Attributes
Remarks
Like #checkOp(String, int, String, String) but instead of throwing a SecurityException it returns #MODE_ERRORED.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.