Stay organized with collections
Save and categorize content based on your preferences.
AccountInfo
@Hide
@ShowFirstParty
class
AccountInfo
:
AbstractSafeParcelable
A representation of an app-level account that can be used to match against app-level accounts on
other devices.
Summary
A representation of an app-level account that can be used to match against app-level accounts on
other devices.
Bytes that are propagated as-is to an originating device that has matched against this account
A hashed identifier for this account
Hashing algorithm used to hash this account's identifier
List of intent action strings that are supported by this account
Public constructors
<init>
AccountInfo
(
hashedAccountId
:
ByteArray
,
hashingAlgorithm
:
Int
,
supportedIntentActions
:
List
<
String
>
,
additionalMetadata
:
ByteArray
)
A representation of an app-level account that can be used to match against app-level accounts on
other devices.
Public methods
writeToParcel
fun
writeToParcel
(
dest
:
Parcel
,
flags
:
Int
)
:
Unit
Properties
val
additionalMetadata
:
ByteArray
Bytes that are propagated as-is to an originating device that has matched against this account
hashedAccountId
val
hashedAccountId
:
ByteArray
A hashed identifier for this account
hashingAlgorithm
val
hashingAlgorithm
:
Int
Hashing algorithm used to hash this account's identifier
supportedIntentActions
val
supportedIntentActions
:
List
<
String
>
List of intent action strings that are supported by this account
Companion properties
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\u003eAccountInfo\u003c/code\u003e represents an app-level account for cross-device matching.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a hashed account identifier, hashing algorithm, supported intent actions, and additional metadata.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAccountInfo\u003c/code\u003e can be serialized and deserialized using \u003ccode\u003ewriteToParcel\u003c/code\u003e and \u003ccode\u003eCREATOR\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides methods for equality checks (\u003ccode\u003eequals\u003c/code\u003e) and data access (properties like \u003ccode\u003ehashedAccountId\u003c/code\u003e, \u003ccode\u003esupportedIntentActions\u003c/code\u003e, etc.).\u003c/p\u003e\n"]]],["`AccountInfo` represents an app-level account for matching across devices. Key information includes `hashedAccountId` (a hashed identifier), `hashingAlgorithm` (used for the identifier), `supportedIntentActions` (a list of actions), and `additionalMetadata` (bytes for the originating device). Core actions involve initializing an `AccountInfo` instance with these properties, checking equality with another object using `equals`, and using `writeToParcel` to save this account. There is a `CREATOR` property that can be used for creating an instance.\n"],null,["# AccountInfo\n===========\n\n```\n@Hide @ShowFirstParty class AccountInfo : AbstractSafeParcelable\n```\n\n|---------------------------------------------------|\n| [com.google.android.gms.dtdi.core.AccountInfo](#) |\n\nA representation of an app-level account that can be used to match against app-level accounts on\nother devices.\n\nSummary\n-------\n\n| ### Nested classes ||\n|------------|-------------------------------------------------------------------------------------------------------------|\n| annotation | [HashingAlgorithm](/android/reference/com/google/android/gms/dtdi/core/AccountInfo.HashingAlgorithm) \u003cbr /\u003e |\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(kotlin.ByteArray,%20kotlin.Int,%20kotlin.collections.List,%20kotlin.ByteArray))`(`hashedAccountId:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`, `hashingAlgorithm:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `supportedIntentActions:` `[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\u003e`, `additionalMetadata:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` A representation of an app-level account that can be used to match against app-level accounts on other devices. |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\n| ### Properties ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | [additionalMetadata](#additionalMetadata:kotlin.ByteArray) Bytes that are propagated as-is to an originating device that has matched against this account |\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | [hashedAccountId](#hashedAccountId:kotlin.ByteArray) A hashed identifier for this account |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashingAlgorithm](#hashingAlgorithm:kotlin.Int) Hashing algorithm used to hash this account's identifier |\n| [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\\\u003e | [supportedIntentActions](#supportedIntentActions:kotlin.collections.List) List of intent action strings that are supported by this account |\n\n| ### Companion properties ||\n|-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|\n| [Creator](https://developer.android.com/reference/android/os/Parcelable/Creator.html)\\\u003c[AccountInfo](#)\\\u003e | [CREATOR](#Companion.CREATOR:android.os.Parcelable.Creator) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nAccountInfo(\n hashedAccountId: ByteArray, \n hashingAlgorithm: Int, \n supportedIntentActions: List\u003cString\u003e, \n additionalMetadata: ByteArray)\n```\n\nA representation of an app-level account that can be used to match against app-level accounts on\nother devices.\n\nPublic methods\n--------------\n\n### equals\n\n```\nfun equals(other: Any?): Boolean\n``` \n\n### writeToParcel\n\n```\nfun writeToParcel(\n dest: Parcel, \n flags: Int\n): Unit\n```\n\nProperties\n----------\n\n### additionalMetadata\n\n```\nval additionalMetadata: ByteArray\n```\n\nBytes that are propagated as-is to an originating device that has matched against this account \n\n### hashedAccountId\n\n```\nval hashedAccountId: ByteArray\n```\n\nA hashed identifier for this account \n\n### hashingAlgorithm\n\n```\nval hashingAlgorithm: Int\n```\n\nHashing algorithm used to hash this account's identifier \n\n### supportedIntentActions\n\n```\nval supportedIntentActions: List\u003cString\u003e\n```\n\nList of intent action strings that are supported by this account\n\nCompanion properties\n--------------------\n\n### CREATOR\n\n```\nval CREATOR: Creator\u003cAccountInfo\u003e\n```"]]