library
androidJvm
library
/
org.xmtp.android.library.codecs
/
TextCodec
Text
Codec
data
class
TextCodec
(
var
contentType
:
ContentTypeId
=
ContentTypeText
)
:
ContentCodec
<
String
>
Members
Constructors
Text
Codec
Link copied to clipboard
constructor
(
contentType
:
ContentTypeId
=
ContentTypeText
)
Functions
decode
Link copied to clipboard
open
override
fun
decode
(
content
:
EncodedContent
)
:
String
encode
Link copied to clipboard
open
override
fun
encode
(
content
:
String
)
:
EncodedContent
fallback
Link copied to clipboard
open
override
fun
fallback
(
content
:
String
)
:
String
?
should
Push
Link copied to clipboard
open
override
fun
shouldPush
(
content
:
String
)
:
Boolean
Properties
content
Type
Link copied to clipboard
open
override
var
contentType
:
ContentTypeId