Answers for "capacitor 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

Browse Popular Code Answers by Language