Share via


ClipData.NewPlainText Method

Definition

Overloads

NewPlainText(ICharSequence, ICharSequence)

Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN.

NewPlainText(String, String)

Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN.

NewPlainText(ICharSequence, ICharSequence)

Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN.

[Android.Runtime.Register("newPlainText", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;", "")]
public static Android.Content.ClipData? NewPlainText (Java.Lang.ICharSequence? label, Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("newPlainText", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;", "")>]
static member NewPlainText : Java.Lang.ICharSequence * Java.Lang.ICharSequence -> Android.Content.ClipData

Parameters

label
ICharSequence

User-visible label for the clip data.

text
ICharSequence

The actual text in the clip.

Returns

Returns a new ClipData containing the specified data.

Attributes

Remarks

Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN.

Java documentation for android.content.ClipData.newPlainText(java.lang.CharSequence, java.lang.CharSequence).

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

NewPlainText(String, String)

Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN.

public static Android.Content.ClipData? NewPlainText (string? label, string? text);
static member NewPlainText : string * string -> Android.Content.ClipData

Parameters

label
String

User-visible label for the clip data.

text
String

The actual text in the clip.

Returns

Returns a new ClipData containing the specified data.

Remarks

Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN.

Java documentation for android.content.ClipData.newPlainText(java.lang.CharSequence, java.lang.CharSequence).

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