Permissions.Battery Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Permission for battery
public class Permissions.Battery : Xamarin.Essentials.Permissions.BasePlatformPermission
- Inheritance
Constructors
Permissions.Battery() |
Public constructor for permission. |
Properties
RecommendedInfoPlistKeys | (Inherited from Permissions.BasePlatformPermission) |
RequiredDeclarations |
Get a list of required declarations. (Inherited from Permissions.BasePlatformPermission) |
RequiredInfoPlistKeys |
Get a list of required keys in the info.plist. (Inherited from Permissions.BasePlatformPermission) |
RequiredPermissions |
Get a list of required permissions. |
RequiredPermissions |
Get a list of required permissions. (Inherited from Permissions.BasePlatformPermission) |
Methods
CheckStatusAsync() |
Check status of Battery permission. |
CheckStatusAsync() |
Checks the status of a specific permission. (Inherited from Permissions.BasePlatformPermission) |
EnsureDeclared() |
Ensures that all permissions are declared. (Inherited from Permissions.BasePlatformPermission) |
RequestAsync() |
Request a specific permission from the user. (Inherited from Permissions.BasePlatformPermission) |
ShouldShowRationale() |
Gets whether you should show UI with rationale for requesting a permission. (Inherited from Permissions.BasePlatformPermission) |