Extra

 class 
 Extra 
 : 
 AbstractSafeParcelable 

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

Properties

The boolean extra value.

The byte array extra value.

The int extra value.

key

The string key for the intent extra field.

The long extra value.

The string extra value.

The type of the extra value.

Companion properties

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

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.

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 .

type

 val 
 type 
 : 
  Int 
 

The type of the extra value.

See Also

Companion properties

CREATOR

 val 
 CREATOR 
 : 
  Creator 
 
 < 
  Extra 
 
 > 
Create a Mobile Website
View Site in Mobile | Classic
Share by: