askOverlay

@RequiresPermission(value = "android.permission.SYSTEM_ALERT_WINDOW")
fun askOverlay(): Boolean

Request activation of overlay permissions.


📝 Permissions needed in the manifest:

    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

Return

Boolean — true if the overlay could be approved and has allowed