| /expo/packages/expo-device/build/ |
| H A D | Device.types.js | 4 export var DeviceType; variable 5 (function (DeviceType) { argument 9 DeviceType[DeviceType["UNKNOWN"] = 0] = "UNKNOWN"; 13 DeviceType[DeviceType["PHONE"] = 1] = "PHONE"; 17 DeviceType[DeviceType["TABLET"] = 2] = "TABLET"; 21 DeviceType[DeviceType["DESKTOP"] = 3] = "DESKTOP"; 25 DeviceType[DeviceType["TV"] = 4] = "TV"; 26 })(DeviceType || (DeviceType = {}));
|
| H A D | ExpoDevice.web.js | 3 import { DeviceType } from './Device.types'; 15 return DeviceType.PHONE; 17 return DeviceType.TABLET; 19 return DeviceType.TV; 23 return DeviceType.UNKNOWN; 25 return DeviceType.DESKTOP;
|
| H A D | Device.d.ts | 1 import { DeviceType } from './Device.types'; 2 export { DeviceType }; 85 export declare const deviceType: DeviceType | null; 203 export declare function getDeviceTypeAsync(): Promise<DeviceType>;
|
| H A D | ExpoDevice.web.d.ts | 1 import { DeviceType } from './Device.types'; 8 readonly deviceType: DeviceType; 16 getDeviceTypeAsync(): Promise<DeviceType>;
|
| H A D | ExpoDevice.web.js.map | 1 …DeviceType } from './Device.types';\n\ntype NavigatorWithDeviceMemory = Navigator & { deviceMemory…
|
| H A D | Device.types.d.ts | 4 export declare enum DeviceType { enum
|
| H A D | Device.js | 2 import { DeviceType } from './Device.types'; 4 export { DeviceType };
|
| H A D | Device.js.map | 1 …DeviceType } from './Device.types';\nimport ExpoDevice from './ExpoDevice';\n\nexport { DeviceType…
|
| H A D | Device.types.js.map | 1 …ng the different types of devices supported by Expo.\n */\nexport enum DeviceType {\n /**\n * A…
|
| /expo/packages/expo-device/src/ |
| H A D | ExpoDevice.web.ts | 4 import { DeviceType } from './Device.types'; 18 function getDeviceType(): DeviceType { 21 return DeviceType.PHONE; 23 return DeviceType.TABLET; 25 return DeviceType.TV; 29 return DeviceType.UNKNOWN; 31 return DeviceType.DESKTOP; 51 get deviceType(): DeviceType { 79 async getDeviceTypeAsync(): Promise<DeviceType> {
|
| H A D | Device.ts | 3 import { DeviceType } from './Device.types'; 6 export { DeviceType }; 97 export const deviceType: DeviceType | null = ExpoDevice ? ExpoDevice.deviceType : null; 232 export async function getDeviceTypeAsync(): Promise<DeviceType> {
|
| H A D | Device.types.ts | 4 export enum DeviceType { enum
|
| /expo/packages/expo-device/ios/ |
| H A D | DeviceModule.swift | 43 return DeviceType.desktop.rawValue in getDeviceType() 49 return DeviceType.desktop.rawValue in getDeviceType() 55 return DeviceType.phone.rawValue in getDeviceType() 57 return DeviceType.tablet.rawValue in getDeviceType() 59 return DeviceType.tv.rawValue in getDeviceType() 61 return DeviceType.unknown.rawValue in getDeviceType() 104 enum DeviceType: Int {
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/device/ |
| H A D | DeviceModule.kt | 23 enum class DeviceType(val JSValue: Int) { in <lambda>() class in abi49_0_0.expo.modules.device.DeviceModule 137 private fun getDeviceType(context: Context): DeviceType { in <lambda>() 140 return DeviceType.TV in <lambda>() 145 return DeviceType.TV in <lambda>() 162 DeviceType.UNKNOWN in <lambda>() 164 DeviceType.TABLET in <lambda>() 166 DeviceType.PHONE in <lambda>() 173 ?: return DeviceType.UNKNOWN in <lambda>() 198 DeviceType.PHONE in <lambda>() 201 DeviceType.TABLET in <lambda>() [all …]
|
| /expo/packages/expo-device/android/src/main/java/expo/modules/device/ |
| H A D | DeviceModule.kt | 23 enum class DeviceType(val JSValue: Int) { in <lambda>() class in expo.modules.device.DeviceModule 133 private fun getDeviceType(context: Context): DeviceType { in <lambda>() 136 return DeviceType.TV in <lambda>() 141 return DeviceType.TV in <lambda>() 158 DeviceType.UNKNOWN in <lambda>() 160 DeviceType.TABLET in <lambda>() 162 DeviceType.PHONE in <lambda>() 169 ?: return DeviceType.UNKNOWN in <lambda>() 194 DeviceType.PHONE in <lambda>() 197 DeviceType.TABLET in <lambda>() [all …]
|
| /expo/ios/versioned/sdk49/ExpoDevice/ |
| H A D | DeviceModule.swift | 45 return DeviceType.desktop.rawValue in getDeviceType() 51 return DeviceType.desktop.rawValue in getDeviceType() 57 return DeviceType.phone.rawValue in getDeviceType() 59 return DeviceType.tablet.rawValue in getDeviceType() 61 return DeviceType.tv.rawValue in getDeviceType() 63 return DeviceType.unknown.rawValue in getDeviceType() 106 enum DeviceType: Int {
|
| /expo/ios/versioned/sdk48/ExpoDevice/ |
| H A D | DeviceModule.swift | 28 return DeviceType.phone.rawValue in definition() 30 return DeviceType.tablet.rawValue in definition() 32 return DeviceType.tv.rawValue in definition() 34 return DeviceType.unknown.rawValue in definition() 89 enum DeviceType: Int {
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/device/ |
| H A D | DeviceModule.kt | 25 enum class DeviceType(val JSValue: Int) { in <lambda>() class in abi48_0_0.expo.modules.device.DeviceModule 138 private fun getDeviceType(context: Context): DeviceType { in <lambda>() 141 return DeviceType.TV in <lambda>() 146 return DeviceType.TV in <lambda>() 151 ?: return DeviceType.UNKNOWN in <lambda>() 163 DeviceType.PHONE in <lambda>() 166 DeviceType.TABLET in <lambda>() 169 DeviceType.UNKNOWN in <lambda>()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/device/ |
| H A D | DeviceModule.kt | 28 enum class DeviceType(val JSValue: Int) { class in abi47_0_0.expo.modules.device.DeviceModule 163 private fun getDeviceType(context: Context): DeviceType { in getDeviceType() 166 return DeviceType.TV in getDeviceType() 171 return DeviceType.TV in getDeviceType() 175 …r = context.getSystemService(Context.WINDOW_SERVICE) as WindowManager? ?: return DeviceType.UNKNOWN in getDeviceType() 187 DeviceType.PHONE in getDeviceType() 190 DeviceType.TABLET in getDeviceType() 193 DeviceType.UNKNOWN in getDeviceType()
|
| /expo/apps/native-component-list/src/screens/ |
| H A D | DeviceScreen.tsx | 20 [Device.DeviceType.UNKNOWN]: 'unknown', 21 [Device.DeviceType.PHONE]: 'phone', 22 [Device.DeviceType.TABLET]: 'tablet', 23 [Device.DeviceType.DESKTOP]: 'desktop', 24 [Device.DeviceType.TV]: 'tv',
|
| /expo/docs/pages/versions/v46.0.0/sdk/ |
| H A D | device.mdx | 195 Checks the type of the device as a [`Device.DeviceType`](#devicedevicetype) enum value. 197 … returns `DeviceType.PHONE`. For lengths between 7" and 18", the method returns `DeviceType.TABLET… 201 Returns a promise that resolves to a [`Device.DeviceType`](#devicedevicetype) enum value. 207 // DeviceType.PHONE 320 ### `Device.DeviceType`
|
| /expo/apps/test-suite/tests/ |
| H A D | Device.js | 11 t.expect(Object.values(Device.DeviceType).includes(deviceType)).toBeTruthy();
|