getForegroundProcessName

open fun getForegroundProcessName(): String

Return the foreground process name.

Target APIs greater than 21 must hold {@code }

Return

the foreground process name