Click or drag to resize

AppManager Methods

The AppManager type exposes the following members.

Methods
NameDescription
Public method AddBatteryOptimizationExemption
Call this method to place the given application package on the device's power allowlist.
Public method EnableNotificationChannels
Enables or disables a NotificationChannel for a specified application.
Public method ForceStopPackage
Call this method to stop an application.
Public method GrantAllPermissions
Call this method to grant an application all the runtime permissions declared in its manifest.
Public method GrantPermissions
Call this method to grant an application the specified runtime permissions.
Public method RemoveBatteryOptimizationExemption
Call this method to remove the given application package from the device's power allowlist.
Public method RevokePermissions
Call this method to revoke an application the specified runtime permissions.
Public method SetApplicationEnabledSetting
Call this method to set the enable setting for an application.
Public method SetApplicationHidden
Call this method to hide or unhide packages.
Public method SetModeAppOps
Call this method to set the mode of the specified app-ops permissions of a given application.
Public method SetNotificationsEnabledForPackage
Call this method to enable/disable the notifications of the given application.
Public method SetStatusBarDisabled
Call this method to disable or enable the status bar.
Public method SetUninstallBlocked
Change whether a user can uninstalling a package.
Top Top
See Also