Share via


ClipData.NewHtmlText Method

Definition

Overloads

NewHtmlText(ICharSequence, ICharSequence, String)

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

NewHtmlText(String, String, String)

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

NewHtmlText(ICharSequence, ICharSequence, String)

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

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

Parameters

label
ICharSequence

User-visible label for the clip data.

text
ICharSequence

The text of clip as plain text, for receivers that don't handle HTML. This is required.

htmlText
String

The actual HTML 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_HTML.

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

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

NewHtmlText(String, String, String)

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

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

Parameters

label
String

User-visible label for the clip data.

text
String

The text of clip as plain text, for receivers that don't handle HTML. This is required.

htmlText
String

The actual HTML 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_HTML.

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

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