Stay organized with collections Save and categorize content based on your preferences.

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)

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.

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)

Represents a single extra element. Not suitable for sending across the wire.

Public methods

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

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.

key

val key: String

The string key for the intent extra field.

stringExtra

val stringExtra: String?

The string extra value. This should be non-null if and only if type is ExtraType.TYPE_STRING.

type

val type: Int

The type of the extra value.

See Also

Companion properties

CREATOR

val CREATOR: Creator<Extra>