CodecRegistry class
This is a registry of codecs for particular types.
It knows how to apply the codecs to decode or encode xmtp.EncodedContent to DecodedContent..
- Implemented types
Constructors
Properties
- contentType → ContentTypeId
-
This identifies the flavor of content this codec can handle.
It advertises the ability to be responsible for the specified
ContentTypeId.authorityId/ContentTypeId.typeId.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
EncodedContent encoded) → Future< DecodedContent> -
Use the registered codecs to decode the
encoded
content.override -
encode(
DecodedContent decoded) → Future< EncodedContent> -
Use the registered codecs to encode the
content
.override -
fallback(
DecodedContent content) → String? -
This may provide text that can be displayed instead of the content.
It can be used in contexts that do not support rendering a content type.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerCodec(
Codec< Object> codec) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited