mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-02-24 00:52:50 +08:00
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
![]() |
var screenOrientation = {};
|
||
|
|
||
|
screenOrientation.setOrientation = function(orientation) {
|
||
|
if (blackberry.app) {
|
||
|
if (orientation === 'unlocked') {
|
||
|
blackberry.app.unlockOrientation();
|
||
|
} else {
|
||
|
blackberry.app.lockOrientation(orientation);
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = screenOrientation;
|