canDrawOverlays

public static boolean canDrawOverlays(Context context)


public static boolean canDrawOverlays(Context context, boolean needOpenPermissionSetting)

Checks whether the app has overlay (floating window) permission.

Return

whether the permission is granted

Parameters

context

context