Google is committed to advancing racial equity for Black communities. See how.
Added in API level REL

Part

open class Part
kotlin.Any
   ↳ com.google.android.util.AbstractMessageParser.Part

Represents set of tokens that are delivered as a single message.

Summary

Public constructors

Public methods
open Unit

Adds the given token to this part.

open AbstractMessageParser.Token!

Convenience method for getting the Token of a Part that represents a media Token.

open String!

Returns the original text of this part.

open ArrayList<AbstractMessageParser.Token!>!

Returns the tokens in this part.

open String!
getType(isSend: Boolean)

open Boolean

open Unit
setMeText(meText: String!)

Public constructors

<init>

Added in API level REL
Part()

Public methods

add

Added in API level REL
open fun add(token: AbstractMessageParser.Token!): Unit

Adds the given token to this part.

getMediaToken

Added in API level REL
open fun getMediaToken(): AbstractMessageParser.Token!

Convenience method for getting the Token of a Part that represents a media Token. Parts of this kind will always only have a single Token

Return
AbstractMessageParser.Token! if this.isMedia(), returns the Token representing the media contained in this Part, otherwise returns null;

getRawText

Added in API level REL
open fun getRawText(): String!

Returns the original text of this part.

getTokens

Added in API level REL
open fun getTokens(): ArrayList<AbstractMessageParser.Token!>!

Returns the tokens in this part.

getType

Added in API level REL
open fun getType(isSend: Boolean): String!

isMedia

Added in API level REL
open fun isMedia(): Boolean

setMeText

Added in API level REL
open fun setMeText(meText: String!): Unit