isMainProcess

fun Context.isMainProcess(): Boolean

Returns true if the current process is a main one. A current process is considered the main process if its name is the same as the package name (application ID).