Question about setRequestedOrientation

VLC for Android and Chrome OS specific usage questions
dfdf
Blank Cone
Blank Cone
Posts: 39
Joined: 22 Dec 2013 23:54

Question about setRequestedOrientation

Postby dfdf » 31 Jan 2014 13:20

At the end of onCreate(),I have found this:

// 100 is the value for screen_orientation_start_lock
setRequestedOrientation(mScreenOrientation != 100 ? mScreenOrientation:getScreenOrientation());

I want to learn what does it mean,thank you!

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Question about setRequestedOrientation

Postby edwardw » 02 Feb 2014 21:10

It means that if the setting for screen orientation is set to 'locked', it will preserve the current orientation, else it will set whatever was requested in mScreenOrientation.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 7 guests