Partager via


AppOpsManager.CheckOp(String, Int32, String) Method

Definition

This member is deprecated.

[Android.Runtime.Register("checkOp", "(Ljava/lang/String;ILjava/lang/String;)I", "GetCheckOp_Ljava_lang_String_ILjava_lang_String_Handler")]
public virtual Android.App.AppOpsManagerMode CheckOp (string op, int uid, string packageName);
[<Android.Runtime.Register("checkOp", "(Ljava/lang/String;ILjava/lang/String;)I", "GetCheckOp_Ljava_lang_String_ILjava_lang_String_Handler")>]
abstract member CheckOp : string * int * string -> Android.App.AppOpsManagerMode
override this.CheckOp : string * int * string -> Android.App.AppOpsManagerMode

Parameters

op
String

The operation to check. One of the OPSTR_* constants.

uid
Int32

The user id of the application attempting to perform the operation.

packageName
String

The name of the application attempting to perform the operation.

Returns

Attributes

Exceptions

If the app has been configured to crash on this op.

Remarks

This member is deprecated. Renamed to #unsafeCheckOp(String, int, String).

Java documentation for android.app.AppOpsManager.checkOp(java.lang.String, int, java.lang.String).

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