OrientationListener Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OrientationListener(Context) |
Obsolete.
Creates a new OrientationListener. |
OrientationListener(Context, SensorDelay) |
Obsolete.
Creates a new OrientationListener. |
OrientationListener(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
OrientationListener(Context)
Caution
deprecated
Creates a new OrientationListener.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
[System.Obsolete("deprecated")]
public OrientationListener (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Views.OrientationListener : Android.Content.Context -> Android.Views.OrientationListener
Parameters
- context
- Context
for the OrientationListener.
- Attributes
Remarks
Creates a new OrientationListener.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
OrientationListener(Context, SensorDelay)
Caution
deprecated
Creates a new OrientationListener.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
[System.Obsolete("deprecated")]
public OrientationListener (Android.Content.Context? context, Android.Hardware.SensorDelay rate);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Views.OrientationListener : Android.Content.Context * Android.Hardware.SensorDelay -> Android.Views.OrientationListener
Parameters
- context
- Context
for the OrientationListener.
- rate
- SensorDelay
at which sensor events are processed (see also
android.hardware.SensorManager SensorManager
). Use the default
value of android.hardware.SensorManager#SENSOR_DELAY_NORMAL
SENSOR_DELAY_NORMAL
for simple screen orientation change detection.
- Attributes
Remarks
Creates a new OrientationListener.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
OrientationListener(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected OrientationListener (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.OrientationListener : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.OrientationListener
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.