The members of Android.App.AppOpsManager are listed below.
See Also: Inherited members from Java.Lang.Object
Protected Constructors
| | A constructor used when creating managed representations of JNI objects; called by the runtime. |
Public Fields
const | ModeAllowed | AppOpsManagerMode (0). Result from AppOpsManager.CheckOp(string, System.Int32, System.Int32), AppOpsManager.NoteOp(string, System.Int32, System.Int32), AppOpsManager.StartOp(string, System.Int32, System.Int32): the given caller is
allowed to perform the given operation. |
const | ModeDefault | AppOpsManagerMode (3). Result from AppOpsManager.CheckOp(string, System.Int32, System.Int32), AppOpsManager.NoteOp(string, System.Int32, System.Int32), AppOpsManager.StartOp(string, System.Int32, System.Int32): the given caller should
use its default security check. |
const | ModeErrored | AppOpsManagerMode (2). Result from AppOpsManager.CheckOpNoThrow(string, System.Int32, System.Int32), AppOpsManager.NoteOpNoThrow(string, System.Int32, System.Int32), AppOpsManager.StartOpNoThrow(string, System.Int32, System.Int32): the
given caller is not allowed to perform the given operation, and this attempt should
cause it to have a fatal error, typically a Java.Lang.SecurityException. |
const | ModeIgnored | AppOpsManagerMode (1). Result from AppOpsManager.CheckOp(string, System.Int32, System.Int32), AppOpsManager.NoteOp(string, System.Int32, System.Int32), AppOpsManager.StartOp(string, System.Int32, System.Int32): the given caller is
not allowed to perform the given operation, and this attempt should
silently fail (it should not cause the app to crash). |
const | OpstrCoarseLocation | string. Access to coarse location information. |
const | OpstrFineLocation | string. Access to fine location information. |
const | OpstrGetUsageStats | string. Access to Android.App.Usage.UsageStatsManager. |
const | OpstrMonitorHighPowerLocation | string. Continually monitoring location data with a relatively high power request. |
const | OpstrMonitorLocation | string. Continually monitoring location data. |
Protected Properties
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Public Methods
| CheckOp(string, int, string) : AppOpsManagerModeDo a quick check for whether an application might be able to perform an operation. |
| CheckOpNoThrow(string, int, string) : AppOpsManagerModeLike AppOpsManager.CheckOp(string, System.Int32, System.Int32) but instead of throwing a Java.Lang.SecurityException it
returns AppOpsManager.ModeErrored. |
| CheckPackage(int, string)Do a quick check to validate if a package name belongs to a UID. |
| FinishOp(string, int, string)Report that an application is no longer performing an operation that had previously
been started with AppOpsManager.StartOp(string, System.Int32, System.Int32). |
| NoteOp(string, int, string) : AppOpsManagerModeMake note of an application performing an operation. |
| NoteOpNoThrow(string, int, string) : AppOpsManagerModeLike AppOpsManager.NoteOp(string, System.Int32, System.Int32) but instead of throwing a Java.Lang.SecurityException it
returns AppOpsManager.ModeErrored. |
| StartOp(string, int, string) : AppOpsManagerModeReport that an application has started executing a long-running operation. |
| StartOpNoThrow(string, int, string) : AppOpsManagerModeLike AppOpsManager.StartOp(string, System.Int32, System.Int32) but instead of throwing a Java.Lang.SecurityException it
returns AppOpsManager.ModeErrored. |
| StartWatchingMode(string, string, AppOpsManager.IOnOpChangedListener)Monitor for changes to the operating mode for the given op in the given app package. |
| StopWatchingMode(AppOpsManager.IOnOpChangedListener)Stop monitoring that was previously started with AppOpsManager.StartWatchingMode(string, System.String, System.String). |