AppManager Methods |
The AppManager type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddBatteryOptimizationExemption | Call this method to place the given application package on the device's power allowlist. |
![]() | ForceStopPackage | Call this method to stop an application. |
![]() | GrantAllPermissions | Call this method to grant an application all the permissions declared in its manifest. |
![]() | GrantPermissions | Call this method to grant an application the specified permissions. |
![]() | RemoveBatteryOptimizationExemption | Call this method to remove the given application package from the device's power allowlist. |
![]() | RevokePermissions | Call this method to revoke an application the specified permissions. |
![]() | SetApplicationEnabledSetting | Call this method to set the enable setting for an application. |
![]() | SetApplicationHidden | Call this method to hide or unhide packages. |
![]() | SetStatusBarDisabled | Call this method to disable or enable the status bar. |
![]() | SetUninstallBlocked | Change whether a user can uninstalling a package. |