canDrawOverlays

public static boolean canDrawOverlays(Context context)


public static boolean canDrawOverlays(Context context, boolean needOpenPermissionSetting)

检查是否有悬浮窗权限

Return

boolean whether have the permission

Parameters

context

上下文