Click or drag to resize

AppManager Methods

The AppManager type exposes the following members.

Methods
  NameDescription
Public methodAddBatteryOptimizationExemption
Call this method to place the given application package on the device's power allowlist.
Public methodForceStopPackage
Call this method to stop an application.
Public methodGrantAllPermissions
Call this method to grant an application all the permissions declared in its manifest.
Public methodGrantPermissions
Call this method to grant an application the specified permissions.
Public methodRemoveBatteryOptimizationExemption
Call this method to remove the given application package from the device's power allowlist.
Public methodRevokePermissions
Call this method to revoke an application the specified permissions.
Public methodSetApplicationEnabledSetting
Call this method to set the enable setting for an application.
Public methodSetApplicationHidden
Call this method to hide or unhide packages.
Public methodSetStatusBarDisabled
Call this method to disable or enable the status bar.
Public methodSetUninstallBlocked
Change whether a user can uninstalling a package.
Top
See Also