Extra
class Extra : AbstractSafeParcelable
com.google.android.gms.dtdi.core.Extra |
Represents a single extra element. Not suitable for sending across the wire.
Summary
Public constructors |
|
---|---|
<init>(key: String, type: Int, stringExtra: String? = null, booleanExtra: Boolean? = null, intExtra: Int? = null, byteArrayExtra: ByteArray? = null, longExtra: Long? = null) Represents a single extra element. |
Public methods |
|
---|---|
Unit |
writeToParcel(dest: Parcel, flags: Int) |
Properties |
|
---|---|
Boolean? |
The boolean extra value. |
ByteArray? |
The byte array extra value. |
Int? |
The int extra value. |
String |
The string key for the intent extra field. |
Long? |
The long extra value. |
String? |
The string extra value. |
Int |
The type of the extra value. |
Companion properties |
|
---|---|
Creator<Extra> |
Public constructors
<init>
Extra(
key: String,
type: Int,
stringExtra: String? = null,
booleanExtra: Boolean? = null,
intExtra: Int? = null,
byteArrayExtra: ByteArray? = null,
longExtra: Long? = null)
Represents a single extra element. Not suitable for sending across the wire.
Public methods
Properties
booleanExtra
val booleanExtra: Boolean?
The boolean extra value. This should be non-null if and only if type is ExtraType.TYPE_BOOLEAN.
byteArrayExtra
val byteArrayExtra: ByteArray?
The byte array extra value. This should be non-null if and only if type is ExtraType.TYPE_BYTE_ARRAY.
intExtra
val intExtra: Int?
The int extra value. This should be non-null if and only if type is ExtraType.TYPE_INT.
longExtra
val longExtra: Long?
The long extra value. This should be non-null if and only if type is ExtraType.TYPE_LONG.
stringExtra
val stringExtra: String?
The string extra value. This should be non-null if and only if type is ExtraType.TYPE_STRING.