(device: Pick<DeviceInfo, 'platform' | 'appleOs'>)
| 80 | * behavior-for-behavior (false for macOS and every non-Apple platform). |
| 81 | */ |
| 82 | export function isIosFamily(device: Pick<DeviceInfo, 'platform' | 'appleOs'>): boolean { |
| 83 | return isApplePlatform(device.platform) && !isMacOs(device); |
| 84 | } |
| 85 | |
| 86 | export function isMobilePlatform(device: Pick<DeviceInfo, 'platform' | 'appleOs'>): boolean { |
| 87 | // Phone/tablet device family: Android plus every Apple OS except the macOS desktop |