Stay organized with collections
Save and categorize content based on your preferences.
com.google.android.gms.dtdi.core
Interfaces
Classes
Annotations
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\u003eThe \u003ccode\u003ecom.google.android.gms.dtdi.core\u003c/code\u003e package provides interfaces and classes for the DTDI (Device-to-Device Interoperability) Discovery API on Android.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDtdiClient\u003c/code\u003e is the main entry point for interacting with the API, allowing developers to discover and connect to nearby devices.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can define device filters and scopes to narrow down their device discovery, including by Android package or role.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRemoteDevice\u003c/code\u003e and \u003ccode\u003eSelectedDevice\u003c/code\u003e represent discovered and selected devices, respectively, providing information like device name and unique identifiers.\u003c/p\u003e\n"],["\u003cp\u003eSeveral classes offer support for defining and managing accounts, wake-up requests, and data transfer channels.\u003c/p\u003e\n"]]],[],null,["# com.google.android.gms.dtdi.core\n================================\n\nInterfaces\n----------\n\n|------------------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| [DtdiClient](/android/reference/com/google/android/gms/dtdi/core/DtdiClient) | A client for the DTDI Discovery API |\n| [OnPayloadReceivedCallback](/android/reference/com/google/android/gms/dtdi/core/OnPayloadReceivedCallback) | Listener that is notified when a payload received. |\n\nClasses\n-------\n\n|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AccountInfo](/android/reference/com/google/android/gms/dtdi/core/AccountInfo) | A representation of an app-level account that can be used to match against app-level accounts on other devices. |\n| [AnalyticsInfo](/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo) | Direct use of `AnalyticsInfo` is not supported. |\n| [AndroidPackageScope](/android/reference/com/google/android/gms/dtdi/core/AndroidPackageScope) | Represents an Android Package remote scope. |\n| [AndroidRoleScope](/android/reference/com/google/android/gms/dtdi/core/AndroidRoleScope) | Represents an Android Role scope. |\n| [ApiAvailability](/android/reference/com/google/android/gms/dtdi/core/ApiAvailability) | The results of checking the availability of different features. |\n| [ChannelInfo](/android/reference/com/google/android/gms/dtdi/core/ChannelInfo) | Information used to identify a channel. |\n| [DeviceFilter](/android/reference/com/google/android/gms/dtdi/core/DeviceFilter) | Direct use of DeviceFilter is not supported. |\n| [Extra](/android/reference/com/google/android/gms/dtdi/core/Extra) | Represents a single extra element. |\n| [GetDevicesResult](/android/reference/com/google/android/gms/dtdi/core/GetDevicesResult) | Devices selected with [DtdiClient.createDevicePickerIntent](/android/reference/com/google/android/gms/dtdi/core/DtdiClient#createDevicePickerIntent(kotlin.collections.List,%20kotlin.Boolean,%20com.google.android.gms.dtdi.core.WakeUpRequest,%20com.google.android.gms.dtdi.analytics.CorrelationData,%20kotlin.Int)). |\n| [IntermediateAccountInfo](/android/reference/com/google/android/gms/dtdi/core/IntermediateAccountInfo) | An intermediate representation of [AccountInfo](/android/reference/com/google/android/gms/dtdi/core/AccountInfo). |\n| [RemoteAppScope](/android/reference/com/google/android/gms/dtdi/core/RemoteAppScope) | Represents a remote application scope. |\n| [RemoteDevice](/android/reference/com/google/android/gms/dtdi/core/RemoteDevice) | Represents a device scan result. |\n| [ScanResult](/android/reference/com/google/android/gms/dtdi/core/ScanResult) | Represents a device scan result. |\n| [SelectedDevice](/android/reference/com/google/android/gms/dtdi/core/SelectedDevice) | A data class encapsulating the unique identifier (token) of a device and its related information (such as the device name). |\n| [WakeUpRequest](/android/reference/com/google/android/gms/dtdi/core/WakeUpRequest) | Represents a wake up request. |\n\nAnnotations\n-----------\n\n|------------------------------------------------------------------------------------------------|---------------------------------------------------------------------|\n| [AndroidRoleScopes](/android/reference/com/google/android/gms/dtdi/core/AndroidRoleScopes) | Annotation for the supported Android roles. |\n| [ApiSurface](/android/reference/com/google/android/gms/dtdi/core/ApiSurface) | Specifies an API surface a call is being made from. |\n| [ExtraType](/android/reference/com/google/android/gms/dtdi/core/ExtraType) | Type of data being passed via this Extra. |\n| [LoggingAvailability](/android/reference/com/google/android/gms/dtdi/core/LoggingAvailability) | Specifies whether logging is available for a specified API surface. |"]]