shouldPreflightIncomingPermissions static method
bool
shouldPreflightIncomingPermissions(
{ - required bool isAndroid,
- required bool isIOS,
- bool isOhos = false,
- required bool isDesktopRuntime,
- required bool isAppInForeground,
})
Implementation
static bool shouldPreflightIncomingPermissions({
required bool isAndroid,
required bool isIOS,
bool isOhos = false,
required bool isDesktopRuntime,
required bool isAppInForeground,
}) {
return isDesktopRuntime ||
isIOS ||
(isAndroid && isAppInForeground) ||
(isOhos && isAppInForeground);
}