# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Constants | Inherited Constants | Fields | Methods | Inherited Methods

# ContentInfo

`public final class ContentInfo`
`extends Object` `implements Parcelable`

java.lang.Object
↳ | android.view.ContentInfo

Holds all the relevant data for a request to `View#performReceiveContent`.

## Summary

### Nested classes
`class` | `ContentInfo.Builder` Builder for `ContentInfo`.

### Constants
`int` | `FLAG_CONVERT_TO_PLAIN_TEXT` Flag requesting that the content should be converted to plain text prior to inserting.
`int` | `SOURCE_APP` Specifies that the operation was triggered by the app that contains the target view.
`int` | `SOURCE_AUTOFILL` Specifies that the operation was triggered by the autofill framework.
`int` | `SOURCE_CLIPBOARD` Specifies that the operation was triggered by a paste from the clipboard (e.g. "Paste" or "Paste as plain text" action in the insertion/selection menu).
`int` | `SOURCE_DRAG_AND_DROP` Specifies that the operation was triggered by the drag/drop framework.
`int` | `SOURCE_INPUT_METHOD` Specifies that the operation was triggered from the soft keyboard (also known as input method editor or IME).
`int` | `SOURCE_PROCESS_TEXT` Specifies that the operation was triggered by a result from a `PROCESS_TEXT` action in the selection menu.

### Inherited constants
From interface `android.os.Parcelable`
`int` | `CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` | `PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `writeToParcel(Parcel, int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

### Fields
`public static final Creator<ContentInfo>` | `CREATOR` Creates `ContentInfo` instances from parcels.

### Public methods
`int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`ClipData` | `getClip()` The data to be inserted.
`Bundle` | `getExtras()` Optional additional metadata.
`int` | `getFlags()` Optional flags that control the insertion behavior.
`Uri` | `getLinkUri()` Optional http/https URI for the content that may be provided by the IME.
`int` | `getSource()` The source of the operation.
`String` | `toString()` Returns a string representation of the object.
`void` | `writeToParcel(Parcel dest, int flags)` Writes this object into the given parcel.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.
From interface `android.os.Parcelable`
`abstract int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`abstract void` | `writeToParcel(Parcel dest, int flags)` Flatten this object in to a Parcel.

## Constants

### FLAG_CONVERT_TO_PLAIN_TEXT

    public static final int FLAG_CONVERT_TO_PLAIN_TEXT

Flag requesting that the content should be converted to plain text prior to inserting.

Constant Value: 1 (0x00000001)

### SOURCE_APP

    public static final int SOURCE_APP

Specifies that the operation was triggered by the app that contains the target view.

Constant Value: 0 (0x00000000)

### SOURCE_AUTOFILL

    public static final int SOURCE_AUTOFILL

Specifies that the operation was triggered by the autofill framework. See https://developer.android.com/guide/topics/text/autofill for more info.

Constant Value: 4 (0x00000004)

### SOURCE_CLIPBOARD

    public static final int SOURCE_CLIPBOARD

Specifies that the operation was triggered by a paste from the clipboard (e.g. "Paste" or "Paste as plain text" action in the insertion/selection menu).

Constant Value: 1 (0x00000001)

### SOURCE_DRAG_AND_DROP

    public static final int SOURCE_DRAG_AND_DROP

Specifies that the operation was triggered by the drag/drop framework. See https://developer.android.com/guide/topics/ui/drag-drop for more info.

Constant Value: 3 (0x00000003)

### SOURCE_INPUT_METHOD

    public static final int SOURCE_INPUT_METHOD

Specifies that the operation was triggered from the soft keyboard (also known as input method editor or IME). See https://developer.android.com/guide/topics/text/image-keyboard for more info.

Constant Value: 2 (0x00000002)

### SOURCE_PROCESS_TEXT

    public static final int SOURCE_PROCESS_TEXT

Specifies that the operation was triggered by a result from a `PROCESS_TEXT` action in the selection menu.

Constant Value: 5 (0x00000005)

## Fields

### CREATOR

    public static final Creator<ContentInfo> CREATOR

Creates `ContentInfo` instances from parcels.

## Public methods

### describeContents

    public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `writeToParcel(android.os.Parcel, int)`, the return value of this method must include the `CONTENTS_FILE_DESCRIPTOR` bit.

Returns
`int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or `CONTENTS_FILE_DESCRIPTOR`

### getClip

    public ClipData getClip ()

The data to be inserted.

Returns
`ClipData` | This value cannot be `null`.

### getExtras

    public Bundle getExtras ()

Optional additional metadata. If the source is `SOURCE_INPUT_METHOD`, this will include the `opts` passed by the IME.

Returns
`Bundle` | This value may be `null`.

### getFlags

    public int getFlags ()

Optional flags that control the insertion behavior. See `FLAG_` constants.

Returns
`int` | Value is either `0` or `FLAG_CONVERT_TO_PLAIN_TEXT`

### getLinkUri

    public Uri getLinkUri ()

Optional http/https URI for the content that may be provided by the IME. This is only populated if the source is `SOURCE_INPUT_METHOD` and if a non-empty `linkUri` was passed by the IME.

Returns
`Uri` | This value may be `null`.

### getSource

    public int getSource ()

The source of the operation. See `SOURCE_` constants. Future versions of Android may pass additional values.

Returns
`int` | Value is `SOURCE_APP`, `SOURCE_CLIPBOARD`, `SOURCE_INPUT_METHOD`, `SOURCE_DRAG_AND_DROP`, `SOURCE_AUTOFILL`, or `SOURCE_PROCESS_TEXT`

### toString

    public String toString ()

Returns a string representation of the object. In general, the `toString` method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The `toString` method for class `Object` returns a string consisting of the name of the class of which the object is an instance, the at-sign character ``@`', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

>      getClass().getName() + '@' + Integer.toHexString(hashCode())

Returns
`String` | This value cannot be `null`.

### writeToParcel

    public void writeToParcel (Parcel dest,
                    int flags)

Writes this object into the given parcel.

Parameters
`dest` | `Parcel`: The parcel to write into. This value cannot be `null`.
`flags` | `int`: The flags to use for parceling.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*