Sequenceablepublic class RichContent extends Object implements Sequenceable
The information includes the URI, MIME type, and description of the rich content.
SystemCapability.Miscservices#INPUTMETHODSequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<RichContent> |
PRODUCER |
Indicates a producer used to get a
RichContent object from a Parcel. |
| 构造器 | 说明 |
|---|---|
RichContent(Uri contentUri,
Uri linkUri,
String[] mimeTypes,
String contentDescription) |
A parameterized constructor used to create a
RichContent instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getDataDetail() |
Obtains the description of rich content.
|
Uri |
getDataUri() |
Obtains the URI of rich content.
|
Uri |
getLinkUri() |
Obtains the URI of the web page content.
|
String[] |
getMimeTypes() |
Obtains the MIME type supported by rich content.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<RichContent> PRODUCER
RichContent object from a Parcel.public RichContent(Uri contentUri, Uri linkUri, String[] mimeTypes, String contentDescription)
RichContent instance.
This method verifies the validity of constructor parameters when creating the instance.
contentUri - Indicates the URI of rich content that an input method engine transfers to an application. The
value cannot be null.linkUri - Indicates the URI of the web page content that an input method engine transfers to an application.mimeTypes - Indicates the MIME type of the rich content transferred by contentUri. The value cannot
be null.contentDescription - Indicates the description of the rich content transferred by contentUri. The
value cannot be null.NullPointerException - Throws this exception if contentUri, mimetypes, or
contentDescription is null.IllegalArgumentException - Throws this exception if a constructor parameter is illegal.public Uri getDataUri()
The URI cannot be null.
public Uri getLinkUri()
The URI can be null.
public String[] getMimeTypes()
Based on the MIME type supported, an application determines whether to process the rich content. The MIME type cannot be null.
public String getDataDetail()
The content description cannot be null.
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.