Android.App.AppOpsManager Members

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
ModeAllowedAppOpsManagerMode (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
ModeDefaultAppOpsManagerMode (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
ModeErroredAppOpsManagerMode (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
ModeIgnoredAppOpsManagerMode (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
OpstrCoarseLocationstring. Access to coarse location information.
const
OpstrFineLocationstring. Access to fine location information.
const
OpstrGetUsageStatsstring. Access to Android.App.Usage.UsageStatsManager.
const
OpstrMonitorHighPowerLocationstring. Continually monitoring location data with a relatively high power request.
const
OpstrMonitorLocationstring. Continually monitoring location data.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. 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) : AppOpsManagerMode
Do a quick check for whether an application might be able to perform an operation.
CheckOpNoThrow(string, int, string) : AppOpsManagerMode
Like 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) : AppOpsManagerMode
Make note of an application performing an operation.
NoteOpNoThrow(string, int, string) : AppOpsManagerMode
Like AppOpsManager.NoteOp(string, System.Int32, System.Int32) but instead of throwing a Java.Lang.SecurityException it returns AppOpsManager.ModeErrored.
StartOp(string, int, string) : AppOpsManagerMode
Report that an application has started executing a long-running operation.
StartOpNoThrow(string, int, string) : AppOpsManagerMode
Like 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).