Stay organized with collections
Save and categorize content based on your preferences.
annotation
class
ExtraType
Type of data being passed via this Extra.
Summary
Indicates that the extra value is a boolean.
Indicates that the extra value is a byte array.
Indicates that the extra value is an integer.
Indicates that the extra value is a long integer.
Indicates that the extra value is a string.
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."],[[["\u003cp\u003e\u003ccode\u003eExtraType\u003c/code\u003e is an annotation class used to define the type of data passed as an extra.\u003c/p\u003e\n"],["\u003cp\u003eIt includes constants like \u003ccode\u003eTYPE_BOOLEAN\u003c/code\u003e, \u003ccode\u003eTYPE_BYTE_ARRAY\u003c/code\u003e, \u003ccode\u003eTYPE_INT\u003c/code\u003e, \u003ccode\u003eTYPE_LONG\u003c/code\u003e, and \u003ccode\u003eTYPE_STRING\u003c/code\u003e to represent different data types.\u003c/p\u003e\n"],["\u003cp\u003eThese constants indicate the expected data type of the extra value, such as boolean, byte array, integer, long integer, or string.\u003c/p\u003e\n"],["\u003cp\u003eEach constant has a corresponding integer value used for identification.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this annotation to ensure type safety and clarity when passing extra data within an application.\u003c/p\u003e\n"]]],[],null,["# ExtraType\n=========\n\n```\nannotation class ExtraType\n```\n\n|-------------------------------------------------|\n| [com.google.android.gms.dtdi.core.ExtraType](#) |\n\nType of data being passed via this Extra.\n\nSummary\n-------\n\n| ### Constants ||\n|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| const [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_BOOLEAN](#Companion.TYPE_BOOLEAN:kotlin.Int) Indicates that the extra value is a boolean. |\n| const [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_BYTE_ARRAY](#Companion.TYPE_BYTE_ARRAY:kotlin.Int) Indicates that the extra value is a byte array. |\n| const [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_INT](#Companion.TYPE_INT:kotlin.Int) Indicates that the extra value is an integer. |\n| const [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_LONG](#Companion.TYPE_LONG:kotlin.Int) Indicates that the extra value is a long integer. |\n| const [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_STRING](#Companion.TYPE_STRING:kotlin.Int) Indicates that the extra value is a string. |\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E())`()` Type of data being passed via this Extra. |\n\nConstants\n---------\n\n### TYPE_BOOLEAN\n\n```\nconst val TYPE_BOOLEAN: Int\n```\n\nIndicates that the extra value is a boolean. \n\n Value: 2\n\n### TYPE_BYTE_ARRAY\n\n```\nconst val TYPE_BYTE_ARRAY: Int\n```\n\nIndicates that the extra value is a byte array. \n\n Value: 4\n\n### TYPE_INT\n\n```\nconst val TYPE_INT: Int\n```\n\nIndicates that the extra value is an integer. \n\n Value: 3\n\n### TYPE_LONG\n\n```\nconst val TYPE_LONG: Int\n```\n\nIndicates that the extra value is a long integer. \n\n Value: 5\n\n### TYPE_STRING\n\n```\nconst val TYPE_STRING: Int\n```\n\nIndicates that the extra value is a string. \n\n Value: 1\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nExtraType()\n```\n\nType of data being passed via this Extra."]]