build From Serialized Data
Builds UserMessage
, FileMessage
or AdminMessage
instance from serialized data generated by serialize.
Return
UserMessage
, FileMessage
or AdminMessage
instance.
Since
3.0.19
Parameters
Serialized UserMessage
, FileMessage
or AdminMessage
data.
Builds UserMessage
, FileMessage
or AdminMessage
instance from serialized data generated by serialize.
Unlike buildFromSerializedData, this method takes an extra argument 'desiredState'. This argument will override the returned BaseMessage's SendingStatus.
Under normal development scenarios, most application developers won't need to use this method. Changing a message's sending state may corrupt Sendbird SDK's internal states and may lead to undesired results.
The rebuilt BaseMessage instance will have an error code of SendbirdError.ERR_PENDING if the instance's SendingStatus changed from SendingStatus.PENDING to SendingStatus.FAILED.
Return
UserMessage
, FileMessage
or AdminMessage
instance.
Since
3.0.146
Parameters
Serialized UserMessage
, FileMessage
or AdminMessage
data.