Home
last modified time | relevance | path

Searched refs:lockAsync (Results 1 – 23 of 23) sorted by relevance

/expo/packages/expo-screen-orientation/src/__tests__/
H A DScreenOrientation-test.native.ts8 await expect(ScreenOrientation.lockAsync(NaN as any)).rejects.toThrowError(TypeError);
9 await expect(ScreenOrientation.lockAsync('test' as any)).rejects.toThrowError(TypeError);
13 await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.OTHER);
14 expect(ExpoScreenOrientation.lockAsync).not.toHaveBeenCalled();
/expo/packages/expo-screen-orientation/build/
H A DScreenOrientation.js22 export async function lockAsync(orientationLock) { function
23 if (!ExpoScreenOrientation.lockAsync) {
33 await ExpoScreenOrientation.lockAsync(orientationLock);
86 if (!ExpoScreenOrientation.lockAsync) {
89 await ExpoScreenOrientation.lockAsync(OrientationLock.DEFAULT);
H A DExpoScreenOrientation.web.d.ts7 lockAsync(orientationLock: OrientationLock): Promise<void>; constant
H A DScreenOrientation.d.ts17 export declare function lockAsync(orientationLock: OrientationLock): Promise<void>; function
H A DScreenOrientation.js.map1lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_LEFT);\n * }\n * ```\n */\nexport async func…
H A DExpoScreenOrientation.web.js94 async lockAsync(orientationLock) {
H A DScreenOrientation.types.js.map1lockAsync`](#screenorientationlockasyncorientationlock)\n * method.\n * > __Note:__ `OrientationLo…
H A DExpoScreenOrientation.web.js.map1 …\n }\n return OrientationWebToAPI[webOrientation];\n },\n async lockAsync(orientationLock:…
/expo/packages/expo-screen-orientation/src/
H A DScreenOrientation.ts48 export async function lockAsync(orientationLock: OrientationLock): Promise<void> { function
49 if (!ExpoScreenOrientation.lockAsync) {
62 await ExpoScreenOrientation.lockAsync(orientationLock);
125 if (!ExpoScreenOrientation.lockAsync) {
128 await ExpoScreenOrientation.lockAsync(OrientationLock.DEFAULT);
H A DExpoScreenOrientation.web.ts124 async lockAsync(orientationLock: OrientationLock): Promise<void> {
/expo/apps/test-suite/tests/
H A DScreenOrientation.js39 await ScreenOrientation.lockAsync(desiredOrientationLock);
78 await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.DEFAULT);
85 await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_LEFT);
130 await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_LEFT);
231 await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_LEFT);
/expo/apps/native-component-list/src/screens/
H A DAccelerometerScreen.tsx26 ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP).catch(() => null);
28 ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.ALL).catch(() => null);
H A DBarCodeScannerScreen.tsx71 ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP);
73 ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.ALL);
H A DScreenOrientationScreen.tsx68 …await ScreenOrientation.lockAsync(orientation).catch(console.warn); // on iPhoneX PortraitUpsideDo…
/expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/
H A DScreenOrientationModule.java66 public void lockAsync(String orientationLockStr, Promise promise) { in lockAsync() method in ScreenOrientationModule
102 lockAsync(OrientationLock.DEFAULT.toString(), promise); in unlockAsync()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/api/
H A DScreenOrientationModule.java66 public void lockAsync(String orientationLockStr, Promise promise) { in lockAsync() method in ScreenOrientationModule
102 lockAsync(OrientationLock.DEFAULT.toString(), promise); in unlockAsync()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/api/
H A DScreenOrientationModule.java66 public void lockAsync(String orientationLockStr, Promise promise) { in lockAsync() method in ScreenOrientationModule
102 lockAsync(OrientationLock.DEFAULT.toString(), promise); in unlockAsync()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/api/
H A DScreenOrientationModule.java66 public void lockAsync(String orientationLockStr, Promise promise) { in lockAsync() method in ScreenOrientationModule
102 lockAsync(OrientationLock.DEFAULT.toString(), promise); in unlockAsync()
/expo/ios/versioned/sdk47/EXScreenOrientation/EXScreenOrientation/
H A DABI47_0_0EXScreenOrientationModule.m46 ABI47_0_0EX_EXPORT_METHOD_AS(lockAsync, category
47 lockAsync:(NSNumber *)orientationLock
/expo/ios/versioned/sdk48/EXScreenOrientation/EXScreenOrientation/
H A DABI48_0_0EXScreenOrientationModule.m46 ABI48_0_0EX_EXPORT_METHOD_AS(lockAsync, category
47 lockAsync:(NSNumber *)orientationLock
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/screenorientation/
H A DScreenOrientationModule.kt61 fun lockAsync(orientationLock: Int, promise: Promise) { in <lambda>() method
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/screenorientation/
H A DScreenOrientationModule.kt61 fun lockAsync(orientationLock: Int, promise: Promise) { in <lambda>() method
/expo/packages/expo-screen-orientation/
H A DCHANGELOG.md224 - Fixed `ScreenOrientation.lockAsync` to properly convert to web platform equivalent of chosen lock…