RemoteViews Constructors

Definition

Overloads

RemoteViews(Parcel)

Reads a RemoteViews object from a parcel.

RemoteViews(RemoteViews)

Creates a copy of another RemoteViews.

RemoteViews(IDictionary<SizeF,RemoteViews>)

Create a new RemoteViews object that will inflate the layout with the closest size specification.

RemoteViews(RemoteViews, RemoteViews)

Create a new RemoteViews object that will inflate as the specified landspace or portrait RemoteViews, depending on the current configuration.

RemoteViews(IntPtr, JniHandleOwnership)

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

RemoteViews(String, Int32)

Create a new RemoteViews object that will display the views contained in the specified layout file.

RemoteViews(String, Int32, Int32)

Create a new RemoteViews object that will display the views contained in the specified layout file and change the id of the root view to the specified one.

RemoteViews(Parcel)

Reads a RemoteViews object from a parcel.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public RemoteViews (Android.OS.Parcel? parcel);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Widget.RemoteViews : Android.OS.Parcel -> Android.Widget.RemoteViews

Parameters

parcel
Parcel

parcel

Attributes

Remarks

Java documentation for android.widget.RemoteViews.RemoteViews(android.os.Parcel).

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

RemoteViews(RemoteViews)

Creates a copy of another RemoteViews.

[Android.Runtime.Register(".ctor", "(Landroid/widget/RemoteViews;)V", "", ApiSince=28)]
public RemoteViews (Android.Widget.RemoteViews? src);
[<Android.Runtime.Register(".ctor", "(Landroid/widget/RemoteViews;)V", "", ApiSince=28)>]
new Android.Widget.RemoteViews : Android.Widget.RemoteViews -> Android.Widget.RemoteViews

Parameters

Attributes

Remarks

Java documentation for android.widget.RemoteViews.RemoteViews(android.widget.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.

Applies to

RemoteViews(IDictionary<SizeF,RemoteViews>)

Create a new RemoteViews object that will inflate the layout with the closest size specification.

[Android.Runtime.Register(".ctor", "(Ljava/util/Map;)V", "", ApiSince=31)]
public RemoteViews (System.Collections.Generic.IDictionary<Android.Util.SizeF,Android.Widget.RemoteViews> remoteViews);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Map;)V", "", ApiSince=31)>]
new Android.Widget.RemoteViews : System.Collections.Generic.IDictionary<Android.Util.SizeF, Android.Widget.RemoteViews> -> Android.Widget.RemoteViews

Parameters

remoteViews
IDictionary<SizeF,RemoteViews>

Mapping of size to layout.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.RemoteViews(java.util.Map<android.util.SizeF, android.widget.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.

Applies to

RemoteViews(RemoteViews, RemoteViews)

Create a new RemoteViews object that will inflate as the specified landspace or portrait RemoteViews, depending on the current configuration.

[Android.Runtime.Register(".ctor", "(Landroid/widget/RemoteViews;Landroid/widget/RemoteViews;)V", "")]
public RemoteViews (Android.Widget.RemoteViews? landscape, Android.Widget.RemoteViews? portrait);
[<Android.Runtime.Register(".ctor", "(Landroid/widget/RemoteViews;Landroid/widget/RemoteViews;)V", "")>]
new Android.Widget.RemoteViews : Android.Widget.RemoteViews * Android.Widget.RemoteViews -> Android.Widget.RemoteViews

Parameters

landscape
RemoteViews

The RemoteViews to inflate in landscape configuration

portrait
RemoteViews

The RemoteViews to inflate in portrait configuration

Attributes

Remarks

Java documentation for android.widget.RemoteViews.RemoteViews(android.widget.RemoteViews, android.widget.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.

Applies to

RemoteViews(IntPtr, JniHandleOwnership)

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

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

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

RemoteViews(String, Int32)

Create a new RemoteViews object that will display the views contained in the specified layout file.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public RemoteViews (string? packageName, int layoutId);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Android.Widget.RemoteViews : string * int -> Android.Widget.RemoteViews

Parameters

packageName
String

Name of the package that contains the layout resource

layoutId
Int32

The id of the layout resource

Attributes

Remarks

Java documentation for android.widget.RemoteViews.RemoteViews(java.lang.String, 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

RemoteViews(String, Int32, Int32)

Create a new RemoteViews object that will display the views contained in the specified layout file and change the id of the root view to the specified one.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;II)V", "", ApiSince=31)]
public RemoteViews (string packageName, int layoutId, int viewId);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;II)V", "", ApiSince=31)>]
new Android.Widget.RemoteViews : string * int * int -> Android.Widget.RemoteViews

Parameters

packageName
String

Name of the package that contains the layout resource

layoutId
Int32

The id of the layout resource

viewId
Int32
Attributes

Remarks

Java documentation for android.widget.RemoteViews.RemoteViews(java.lang.String, 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