Udostępnij za pośrednictwem


AppWidgetHostView Constructors

Definition

Overloads

AppWidgetHostView(Context)

Create a host view.

AppWidgetHostView(IntPtr, JniHandleOwnership)

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

AppWidgetHostView(Context, Int32, Int32)

Create a host view.

AppWidgetHostView(Context)

Create a host view.

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

Parameters

context
Context
Attributes

Remarks

Create a host view. Uses default fade animations.

Java documentation for android.appwidget.AppWidgetHostView.AppWidgetHostView(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

AppWidgetHostView(IntPtr, JniHandleOwnership)

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

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

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

AppWidgetHostView(Context, Int32, Int32)

Create a host view.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")]
public AppWidgetHostView (Android.Content.Context? context, int animationIn, int animationOut);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")>]
new Android.Appwidget.AppWidgetHostView : Android.Content.Context * int * int -> Android.Appwidget.AppWidgetHostView

Parameters

context
Context
animationIn
Int32

Resource ID of in animation to use

animationOut
Int32

Resource ID of out animation to use

Attributes

Remarks

Create a host view. Uses specified animations when pushing #updateAppWidget(RemoteViews).

Java documentation for android.appwidget.AppWidgetHostView.AppWidgetHostView(android.content.Context, int, 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