Languages

Menu
Sites
Language
Get app orientation

How can I get the app orientation inside a shared library?

I require to perform certain customisations based on portrait & landscape inside my shared library.

Kindly assist.

Thanks :)

Responses

1 Replies
Armaan-Ul- Islam

To get device orientation you may use app_event_get_device_orientation() function of Application API

 

int app_event_get_device_orientation ( app_event_info_h event_info, app_device_orientation_e * orientation ) 

 

Link: https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__APP__COMMON__MODULE.html#gab311ebf53f6f3d68118f93797c05b7eb

 

Or even Device sensors can be used to detect orientation

Tip & Tech Doc: Obtaining device orientation and acceleration using built-in sensors

Link:

https://developer.tizen.org/community/tip-tech/obtaining-device-orientation-and-acceleration-using-built-sensors

Tip & Tech Doc: Responsive UI in Tizen Native

https://developer.tizen.org/community/tip-tech/responsive-ui-tizen-native

 

Here are some post related to shared library I've checked, it may help.

https://developer.tizen.org/forums/native-application-development/class-not-visible-shared-library?langswitch=en&langredirect=1

https://developer.tizen.org/forums/native-application-development/push-shared-library-usrlib-tizen-ide?langswitch=en&langredirect=1