Android.App.AppOpsManager.NoteOp Method
Make note of an application performing an operation.

Syntax

[Android.Runtime.Register("noteOp", "(Ljava/lang/String;ILjava/lang/String;)I", "GetNoteOp_Ljava_lang_String_ILjava_lang_String_Handler")]
[return:Android.Runtime.GeneratedEnum]
public virtual AppOpsManagerMode NoteOp (string op, int uid, string packageName)

Parameters

op
The operation to note. One of the OPSTR_* constants.
uid
The user id of the application attempting to perform the operation.
packageName
The name of the application attempting to perform the operation.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.SecurityExceptionIf the app has been configured to crash on this op.

Remarks

Make note of an application performing an operation. Note that you must pass in both the uid and name of the application to be checked; this function will verify that these two match, and if not, return AppOpsManager.ModeIgnored. If this call succeeds, the last execution time of the operation for this app will be updated to the current time.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0