Languages

Menu
Sites
Language
Lock Orientation

Hello,

I am trying to lock my native app into landscape mode but wasn't able to find any documentation for it. 

Can you please let me know?

I thought it's something I can do with manifest so I have checked:
https://developer.tizen.org/development/tizen-studio/native-tools/configuring-your-app/manifest-text-editor

Regards,

Christian

View Selected Answer

Responses

1 Replies
Mark as answer
Yasin Ali

Hi~,

For documentation please see this link:

https://developer.tizen.org/ko/community/tip-tech/responsive-ui-tizen-native?langredirect=1

Set Orientation mode:

elm_win_rotation_set(ad->win, 270); // landscape

Check Available rotations in code:

int rots[4] = { 0, 90, 180, 270 };
elm_win_wm_rotation_available_rotations_set(ad->win, (const int *)(&rots), 4);
}

Importantly Within Code, implementation details for different view mode callback:

static void rotation_cb(void *data, Evas_Object *obj, void *event_info)

Hope it will help you.

If you find my post is helpful for you, please mark it as the Best Answer to promote this post to others