Share via


DevicePolicyManager.CanAdminGrantSensorsPermissions Method

Definition

Returns true if the caller is running on a device where an admin can grant permissions related to device sensors.

[Android.Runtime.Register("canAdminGrantSensorsPermissions", "()Z", "GetCanAdminGrantSensorsPermissionsHandler", ApiSince=31)]
public virtual bool CanAdminGrantSensorsPermissions ();
[<Android.Runtime.Register("canAdminGrantSensorsPermissions", "()Z", "GetCanAdminGrantSensorsPermissionsHandler", ApiSince=31)>]
abstract member CanAdminGrantSensorsPermissions : unit -> bool
override this.CanAdminGrantSensorsPermissions : unit -> bool

Returns

true if an admin can grant device sensors-related permissions, false otherwise.

Attributes

Remarks

Returns true if the caller is running on a device where an admin can grant permissions related to device sensors. This is a signal that the device is a fully-managed device where personal usage is discouraged. The list of permissions is listed in #setPermissionGrantState(ComponentName, String, String, int).

May be called by any app.

Java documentation for android.app.admin.DevicePolicyManager.canAdminGrantSensorsPermissions().

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