ClipData

Class of android.content · ClipData.java · Android's reference

public class ClipData implements android.os.Parcelable

A clip of the clipboard or a drag: items of text, URIs or intents.

Nested types

Constructors

public ClipData(CharSequence label, String[] mimeTypes, Item item) source
public ClipData(ClipDescription description, Item item) source
public ClipData(ClipData other) source

Methods

public static ClipData newPlainText(CharSequence label, CharSequence text) source
public static ClipData newHtmlText(CharSequence label, CharSequence text, String htmlText) source
public static ClipData newIntent(CharSequence label, Intent intent) source
public static ClipData newRawUri(CharSequence label, Uri uri) source
public static ClipData newUri(ContentResolver resolver, CharSequence label, Uri uri) source
public ClipDescription getDescription() source
public void addItem(Item item) source
public void addItem(ContentResolver resolver, Item item) source
public int getItemCount() source
public Item getItemAt(int index) source
public int describeContents() source
public void writeToParcel(android.os.Parcel dest, int flags) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.