ActionProvider Constructors

Definition

Overloads

ActionProvider(Context)

Creates a new instance.

ActionProvider(IntPtr, JniHandleOwnership)

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

ActionProvider(Context)

Creates a new instance.

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

Parameters

context
Context

Context for accessing resources.

Attributes

Remarks

Creates a new instance. ActionProvider classes should always implement a constructor that takes a single Context parameter for inflating from menu XML.

Java documentation for android.view.ActionProvider.ActionProvider(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

ActionProvider(IntPtr, JniHandleOwnership)

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

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

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