AppOpsManager.UnsafeCheckOpNoThrow(String, Int32, String) 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.
This method was deprecated in API level 36.
[Android.Runtime.Register("unsafeCheckOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetUnsafeCheckOpNoThrow_Ljava_lang_String_ILjava_lang_String_Handler", ApiSince=29)]
public virtual Android.App.AppOpsManagerMode UnsafeCheckOpNoThrow(string op, int uid, string packageName);
[<Android.Runtime.Register("unsafeCheckOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetUnsafeCheckOpNoThrow_Ljava_lang_String_ILjava_lang_String_Handler", ApiSince=29)>]
abstract member UnsafeCheckOpNoThrow : string * int * string -> Android.App.AppOpsManagerMode
override this.UnsafeCheckOpNoThrow : string * int * string -> Android.App.AppOpsManagerMode
Parameters
- op
- String
String: This value cannot be null.
- uid
- Int32
int
- packageName
- String
String: This value cannot be null.
Returns
- Attributes
Remarks
This method was deprecated in API level 36. Use checkOpNoThrow(String,int,String)
Like unsafeCheckOp(String,int,String) but instead of throwing a SecurityException it returns MODE_ERRORED.
Android reference for android.app.AppOpsManager.unsafeCheckOpNoThrow.
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.