Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to lock the screen in IOS pad? #3

Open
inprise1980 opened this issue Mar 11, 2020 · 3 comments
Open

How to lock the screen in IOS pad? #3

inprise1980 opened this issue Mar 11, 2020 · 3 comments

Comments

@inprise1980
Copy link

i use
OrientationPlugin.setPreferredOrientations([DeviceOrientation.portraitUp])
OrientationPlugin.forceOrientation(DeviceOrientation.portraitUp);

but not lock the screen orientation,
How to solve it?thanks。

@sososdk
Copy link
Owner

sososdk commented Mar 11, 2020

Hi @inprise1980

OrientationPlugin.setPreferredOrientations([DeviceOrientation.portraitUp]);
OrientationPlugin.forceOrientation(DeviceOrientation.portraitUp);

The code works for me in iphone.

May not work on iPad, please refer to the documentation of Limitations section.

@FeifanChang
Copy link

is it any solution about this bug?

@inprise1980
Copy link
Author

@FeifanChang

Sososdk's reply is correct. Just follow the documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants