Android.App.AppOpsManager.StartOp Method
Report that an application has started executing a long-running operation.

Syntax

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

Parameters

op
The operation to start. 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

Report that an application has started executing a long-running 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 and the operation will be marked as "running". In this case you must later call AppOpsManager.FinishOp(string, System.Int32, System.Int32) to report when the application is no longer performing the operation.

[Android Documentation]

Requirements

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