OrientationEventListener Constructors

Definition

Overloads

OrientationEventListener(Context)

Creates a new OrientationEventListener.

OrientationEventListener(Context, SensorDelay)

Creates a new OrientationEventListener.

OrientationEventListener(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

OrientationEventListener(Context)

Creates a new OrientationEventListener.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public OrientationEventListener (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Views.OrientationEventListener : Android.Content.Context -> Android.Views.OrientationEventListener

Parameters

context
Context

for the OrientationEventListener.

Attributes

Remarks

Creates a new OrientationEventListener.

Java documentation for android.view.OrientationEventListener.OrientationEventListener(android.content.Context).

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

OrientationEventListener(Context, SensorDelay)

Creates a new OrientationEventListener.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public OrientationEventListener (Android.Content.Context? context, Android.Hardware.SensorDelay rate);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Views.OrientationEventListener : Android.Content.Context * Android.Hardware.SensorDelay -> Android.Views.OrientationEventListener

Parameters

context
Context

for the OrientationEventListener.

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 OrientationEventListener.

Java documentation for android.view.OrientationEventListener.OrientationEventListener(android.content.Context, int).

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

OrientationEventListener(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected OrientationEventListener (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.OrientationEventListener : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.OrientationEventListener

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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.

Applies to