Sequenceablepublic final class MessageUser extends Object implements Sequenceable
NotificationRequest,
NotificationRequest.NotificationConversationalContent and
NotificationRequest.NotificationConversationalContent.ConversationalMessage.SystemCapability.Notification#ANSSequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<MessageUser> |
PRODUCER |
Creates a
MessageUser instance from a Parcel. |
| 构造器 | 说明 |
|---|---|
MessageUser() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getKey() |
Obtains the key of this
MessageUser. |
String |
getName() |
Obtains the name of this
MessageUser. |
PixelMap |
getPixelMap() |
Obtains the pixel map of this
MessageUser. |
String |
getUri() |
Obtains the URI of this
MessageUser. |
boolean |
isMachine() |
Checks whether this
MessageUser is a machine. |
boolean |
isUserImportant() |
Checks whether this
MessageUser is important. |
boolean |
marshalling(Parcel out) |
Marshals this
MessageUser object into a Parcel. |
MessageUser |
setKey(String key) |
Sets the key used to uniquely identify this
MessageUser. |
MessageUser |
setMachine(boolean machine) |
Sets whether this
MessageUser is a machine. |
MessageUser |
setName(String name) |
Sets the name of this
MessageUser. |
MessageUser |
setPixelMap(PixelMap pixelMap) |
Sets the pixel map of this
MessageUser. |
MessageUser |
setUri(String uri) |
Sets the URI of this
MessageUser. |
MessageUser |
setUserAsImportant(boolean important) |
Sets whether this
MessageUser is important. |
String |
toString() |
Returns a string representation of the object.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
MessageUser object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<MessageUser> PRODUCER
MessageUser instance from a Parcel.public String getName()
MessageUser.MessageUser.public MessageUser setName(String name)
MessageUser.name - Indicates the name to set.MessageUser object.public PixelMap getPixelMap()
MessageUser.MessageUser.public MessageUser setPixelMap(PixelMap pixelMap)
MessageUser.pixelMap - Indicates the pixel map to set.MessageUser object.public String getUri()
MessageUser.MessageUser.public MessageUser setUri(String uri)
MessageUser.uri - Indicates the URI to set.MessageUser object.public String getKey()
MessageUser.MessageUser.public MessageUser setKey(String key)
MessageUser. If no key is set, the name set by
setName(java.lang.String) is used to uniquely identify a MessageUser.key - Indicates the key to set.MessageUser object.public boolean isUserImportant()
MessageUser is important.true if this MessageUser is important; returns false otherwise.public MessageUser setUserAsImportant(boolean important)
MessageUser is important. This method can be used to denote users who frequently
interact with the user of this device.important - Specifies whether this MessageUser is important. The value true indicates
that it is important, and the value false indicates not.MessageUser object.public boolean isMachine()
MessageUser is a machine.true if this MessageUser is a machine; returns false otherwise.public MessageUser setMachine(boolean machine)
MessageUser is a machine.machine - Specifies whether this MessageUser is a machine. The value true indicates
that it is, and the value false indicates not.MessageUser object.public boolean marshalling(Parcel out)
MessageUser object into a Parcel.
A process can call the unmarshalling(ohos.utils.Parcel) method to unmarshal this MessageUser object
from a Parcel to implement inter-process communication (IPC).
marshalling 在接口中 Sequenceableout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
MessageUser object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.public String toString()
ObjecttoString 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())