Bug 8328 - Android.Content.PM.ScreenOrientation enumeration missing API9 members
Summary: Android.Content.PM.ScreenOrientation enumeration missing API9 members
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.2.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-11-10 22:18 UTC by Yvan Rodrigues
Modified: 2012-11-13 09:42 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screen shot of Intellisense (3.01 KB, image/png)
2012-11-11 13:20 UTC, Yvan Rodrigues
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Yvan Rodrigues 2012-11-10 22:18:30 UTC
int

SCREEN_ORIENTATION_BEHIND

Constant corresponding to behind in the screenOrientation attribute.



int

SCREEN_ORIENTATION_FULL_SENSOR

Constant corresponding to fullSensor in the screenOrientation attribute.



int

SCREEN_ORIENTATION_LANDSCAPE

Constant corresponding to landscape in the screenOrientation attribute.



int

SCREEN_ORIENTATION_NOSENSOR

Constant corresponding to nosensor in the screenOrientation attribute.



int

SCREEN_ORIENTATION_PORTRAIT

Constant corresponding to portrait in the screenOrientation attribute.



int

SCREEN_ORIENTATION_REVERSE_LANDSCAPE

Constant corresponding to reverseLandscape in the screenOrientation attribute.



int

SCREEN_ORIENTATION_REVERSE_PORTRAIT

Constant corresponding to reversePortrait in the screenOrientation attribute.



int

SCREEN_ORIENTATION_SENSOR

Constant corresponding to sensor in the screenOrientation attribute.



int

SCREEN_ORIENTATION_SENSOR_LANDSCAPE

Constant corresponding to sensorLandscape in the screenOrientation attribute.



int

SCREEN_ORIENTATION_SENSOR_PORTRAIT

Constant corresponding to sensorPortrait in the screenOrientation attribute.



int

SCREEN_ORIENTATION_UNSPECIFIED

Constant corresponding to unspecified in the screenOrientation attribute.



int

SCREEN_ORIENTATION_USER
Comment 1 Jonathan Pryor 2012-11-10 23:03:58 UTC
Which constants are missing? All of the constants you listed are present:

http://androidapi.xamarin.com/?link=T:Android.Content.PM.ScreenOrientation

However, if you want to see/use members added in API 9, you need to set your TargetFrameworkVersion to a version that is API 9 or later, e.g. Android 2.3.3.
Comment 2 Yvan Rodrigues 2012-11-11 13:20:34 UTC
Created attachment 2900 [details]
Screen shot of Intellisense

Maybe the intellisense XML docs are out of date? This is what I see on both my PC and Mac.

Or maybe the docs are gleaned from the official Android site, not the code?

Looking that the associated integers, it can't be a bitmask. i.e. Sensor|Portrait.
Comment 3 Jonathan Pryor 2012-11-11 17:21:12 UTC
As suggested/asked in Comment #1, what is your TargetFrameworkVersion, e.g. within Visual Studio, Project Properties > Application > Minimum Android to target?

The default TargetFrameworkVersion is API 8 (Android 2.2), so if you haven't changed this value you will not see values added in API level 9 or later.
Comment 4 Yvan Rodrigues 2012-11-13 09:42:45 UTC
I am targeting API 8. I didn't realize Intellisense was *that* intelligent!