DiscoveryClient

interface DiscoveryClient : HasApiKey, OptionalModuleApi


Client interface for discovering operational Matter devices on the local network.

Summary

Public functions

Task<ResolveServiceResult!>!

Resolves addresses and TXT records on the local network for the Matter DNS-SD service represented by ResolveServiceRequest.

Public functions

resolveService

fun resolveService(request: ResolveServiceRequest!): Task<ResolveServiceResult!>!

Resolves addresses and TXT records on the local network for the Matter DNS-SD service represented by ResolveServiceRequest. Note that this API may be used only to resolve Matter commissionable or operational service records (i.e. _matter._tcp, or _matterc._udp).

On success, the Task will complete with an instance of DnsSdServiceInfo including the information about the resolved service.

If the service was not resolved, then the task will fail with an , with the status code being TIMEOUT.

If an unsupported service type is provided in the request, orthis is called when SDK_INT is lower than O_MR1, then the will fail with an com.google.android.gms.common.api.ApiException with the status code DEVELOPER_ERROR.