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. |
![]() |
EnableNotificationChannels | Enables or disables a NotificationChannel for a specified application. |
![]() |
ForceStopPackage | Call this method to stop an application. |
![]() |
GrantAllPermissions | Call this method to grant an application all the runtime permissions declared in its manifest. |
![]() |
GrantPermissions | Call this method to grant an application the specified runtime 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 runtime permissions. |
![]() |
SetApplicationEnabledSetting | Call this method to set the enable setting for an application. |
![]() |
SetApplicationHidden | Call this method to hide or unhide packages. |
![]() |
SetModeAppOps | Call this method to set the mode of the specified app-ops permissions of a given application. |
![]() |
SetNotificationsEnabledForPackage | Call this method to enable/disable the notifications of the given application. |
![]() |
SetStatusBarDisabled | Call this method to disable or enable the status bar. |
![]() |
SetUninstallBlocked | Change whether a user can uninstalling a package. |