This is a migrated thread and some comments may be shown as answers.

Lock Landscape for Phone, but not in Tablet

1 Answer 7 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sean
Top achievements
Rank 1
Sean asked on 25 Jun 2015, 10:35 AM

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

Sort by
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.
Let me know if that helps.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
AppBuilder Windows client
Asked by
Sean
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or