See what premium Google Developer Program benefits can do for you. Learn more
Stay organized with collections
Save and categorize content based on your preferences.
annotation class ExtraType
Type of data being passed via this Extra.
Summary
Constants
|
const Int |
Indicates that the extra value is a boolean.
|
const Int |
Indicates that the extra value is a byte array.
|
const Int |
Indicates that the extra value is an integer.
|
const Int |
Indicates that the extra value is a long integer.
|
const Int |
Indicates that the extra value is a string.
|
Public constructors
|
Type of data being passed via this Extra.
|
Constants
TYPE_BOOLEAN
const val TYPE_BOOLEAN: Int
Indicates that the extra value is a boolean.
Value: 2
TYPE_BYTE_ARRAY
const val TYPE_BYTE_ARRAY: Int
Indicates that the extra value is a byte array.
Value: 4
TYPE_INT
const val TYPE_INT: Int
Indicates that the extra value is an integer.
Value: 3
TYPE_LONG
const val TYPE_LONG: Int
Indicates that the extra value is a long integer.
Value: 5
TYPE_STRING
const val TYPE_STRING: Int
Indicates that the extra value is a string.
Value: 1
Public constructors
<init>
ExtraType()
Type of data being passed via this Extra.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`ExtraType` is an annotation class used to define the type of data passed as an extra."],["It includes constants like `TYPE_BOOLEAN`, `TYPE_BYTE_ARRAY`, `TYPE_INT`, `TYPE_LONG`, and `TYPE_STRING` to represent different data types."],["These constants indicate the expected data type of the extra value, such as boolean, byte array, integer, long integer, or string."],["Each constant has a corresponding integer value used for identification."],["Developers can use this annotation to ensure type safety and clarity when passing extra data within an application."]]],[]]