ProcessUtils

class ProcessUtils

Functions

getAllBackgroundProcesses
Link copied to clipboard
open fun getAllBackgroundProcesses(): Set<String>
Return all background processes.
getForegroundProcessName
Link copied to clipboard
open fun getForegroundProcessName(): String
Return the foreground process name.
killAllBackgroundProcesses
Link copied to clipboard
open fun killAllBackgroundProcesses(): Set<String>
Kill all background processes.
killBackgroundProcesses
Link copied to clipboard
open fun killBackgroundProcesses(@NonNull() packageName: String): Boolean
Kill background processes.