ClipData Constructors

Definition

Overloads

Name Description
ClipData(ClipData)

Create a new clip that is a copy of another clip.

ClipData(ClipDescription, ClipData+Item)

Create a new clip that is a copy of another clip.

ClipData(IntPtr, JniHandleOwnership)

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

ClipData(ICharSequence, String[], ClipData+Item)

Create a new clip that is a copy of another clip.

ClipData(String, String[], ClipData+Item)

Create a new clip.

ClipData(ClipData)

Create a new clip that is a copy of another clip.

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

Parameters

other
ClipData

The existing ClipData that is to be copied.

Attributes

Remarks

Create a new clip that is a copy of another clip. This does a deep-copy of all items in the clip.

Java documentation for android.content.ClipData.ClipData(android.content.ClipData).

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

ClipData(ClipDescription, ClipData+Item)

Create a new clip that is a copy of another clip.

[Android.Runtime.Register(".ctor", "(Landroid/content/ClipDescription;Landroid/content/ClipData$Item;)V", "")]
public ClipData(Android.Content.ClipDescription? description, Android.Content.ClipData.Item? item);
[<Android.Runtime.Register(".ctor", "(Landroid/content/ClipDescription;Landroid/content/ClipData$Item;)V", "")>]
new Android.Content.ClipData : Android.Content.ClipDescription * Android.Content.ClipData.Item -> Android.Content.ClipData

Parameters

description
ClipDescription

The ClipDescription describing the clip contents.

item
ClipData.Item

The contents of the first item in the clip.

Attributes

Remarks

Java documentation for android.content.ClipData.ClipData(android.content.ClipData).

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

ClipData(IntPtr, JniHandleOwnership)

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

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

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

ClipData(ICharSequence, String[], ClipData+Item)

Create a new clip that is a copy of another clip.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;[Ljava/lang/String;Landroid/content/ClipData$Item;)V", "")]
public ClipData(Java.Lang.ICharSequence? label, string[]? mimeTypes, Android.Content.ClipData.Item? item);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;[Ljava/lang/String;Landroid/content/ClipData$Item;)V", "")>]
new Android.Content.ClipData : Java.Lang.ICharSequence * string[] * Android.Content.ClipData.Item -> Android.Content.ClipData

Parameters

label
ICharSequence

Label to show to the user describing this clip.

mimeTypes
String[]

An array of MIME types this data is available as.

item
ClipData.Item

The contents of the first item in the clip.

Attributes

Remarks

Java documentation for android.content.ClipData.ClipData(android.content.ClipData).

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

ClipData(String, String[], ClipData+Item)

Create a new clip.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;[Ljava/lang/String;Landroid/content/ClipData$Item;)V", "")]
public ClipData(string? label, string[]? mimeTypes, Android.Content.ClipData.Item? item);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;[Ljava/lang/String;Landroid/content/ClipData$Item;)V", "")>]
new Android.Content.ClipData : string * string[] * Android.Content.ClipData.Item -> Android.Content.ClipData

Parameters

label
String

Label to show to the user describing this clip.

mimeTypes
String[]

An array of MIME types this data is available as.

item
ClipData.Item

The contents of the first item in the clip.

Attributes

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.

Java documentation for android.content.ClipData.ClipData(java.lang.CharSequence, java.lang.String[], android.content.ClipData.Item).

Applies to