AppWidgetHostView 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
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.
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
- 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)
.
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.