Have an application that is for both phone and tablet. Would like to lock the orientation on the phone to landscape only, but on the tablet view have both landscape and portrait. Anyone point me in the right direction?
Thanks.
1 Answer, 1 is accepted
0
Tina Stancheva
Telerik team
answered on 30 Jun 2015, 12:18 PM
Hello Sean,
I believe your requirement can be implemented through the APIs of 2 plugins:
Cordova Device
- use this API to check the device model or name to check if the app is running on a tablet
Screen Orientation - use this API to lock or unlock the device orientation accordingly.