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

Disable rotation for phones

1 Answer 67 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Giancarlo
Top achievements
Rank 1
Giancarlo asked on 13 Nov 2015, 05:11 PM
Is there any way to disable rotation for phones only? 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 18 Nov 2015, 04:31 PM
Hi Giancarlo,

You can benefit from cordova device plugin to get more information for the specific device. As an example, please refer to the Device Information sample.

As to disabling the rotation, you can consider using the Screen Orientation plugin. It allows you to dynamically lock or unlock orientation. To add it to your project, you can perform the following steps:
Right click on your project -> Manage packages -> Plugins Marketplace -> Find the plugin and click install.


Regards,
Dimitrina
Telerik
 

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

 
Tags
AppBuilder extension for Visual Studio
Asked by
Giancarlo
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or