Answers for "capacitor lock screen orientation"

1

capacitor screen orientation

npm install cordova-plugin-screen-orientation
npx cap update
...
window.screen.orientation.lock('portrait');
window.screen.orientation.lock('landscape');
Posted by: Guest on March-19-2021

Code answers related to "capacitor lock screen orientation"

Browse Popular Code Answers by Language