ActivityManager.KillBackgroundProcesses(String) Method
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.
Have the system immediately kill all background processes associated with the given package.
[Android.Runtime.Register("killBackgroundProcesses", "(Ljava/lang/String;)V", "GetKillBackgroundProcesses_Ljava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.KILL_BACKGROUND_PROCESSES")]
public virtual void KillBackgroundProcesses (string? packageName);
[<Android.Runtime.Register("killBackgroundProcesses", "(Ljava/lang/String;)V", "GetKillBackgroundProcesses_Ljava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.KILL_BACKGROUND_PROCESSES")>]
abstract member KillBackgroundProcesses : string -> unit
override this.KillBackgroundProcesses : string -> unit
Parameters
- packageName
- String
The name of the package whose processes are to be killed.
- Attributes
Remarks
Java documentation for android.app.ActivityManager.killBackgroundProcesses(java.lang.String).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.