Skip to content

Commit 0bad2ab

Browse files
author
Wonday
committed
add lockToPortraitUpsideDown() to README
1 parent a401e42 commit 0bad2ab

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ It can return either `PORTRAIT` `LANDSCAPE-LEFT` `LANDSCAPE-RIGHT` `UNKNOWN`
218218
- `lockToLandscape()`
219219
- `lockToLandscapeLeft()` this will lock to camera left home button right
220220
- `lockToLandscapeRight()` this will lock to camera right home button left
221+
- `lockToPortraitUpsideDown` only support android
221222
- `unlockAllOrientations()`
222223
- `getOrientation(function(orientation))`
223224
- `getDeviceOrientation(function(deviceOrientation))`

Diff for: index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ declare class Orientation {
1919
static lockToLandscape(): void;
2020
static lockToLandscapeLeft(): void;
2121
static lockToLandscapeRight(): void;
22+
static lockToPortraitUpsideDown(): void;
2223
static unlockAllOrientations(): void;
2324
static getOrientation(callback: (orientation: OrientationType) => void): void;
2425
static getDeviceOrientation(callback: (orientation: OrientationType) => void): void;

0 commit comments

Comments
 (0)