DiscoveryClient

public interface DiscoveryClient implements HasApiKey<Api.ApiOptions.NoOptions> OptionalModuleApi

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

Public Method Summary

abstract Task<ResolveServiceResult>
resolveService(ResolveServiceRequest request)
Resolves addresses and TXT records on the local network for the Matter DNS-SD service represented by ResolveServiceRequest.

Public Methods

public abstract Task<ResolveServiceResult> resolveService (ResolveServiceRequest request)

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 ApiException, with the status code being CommonStatusCodes.TIMEOUT.

If an unsupported service type is provided in the request, orthis is called when Build.VERSION.SDK_INT is lower than Build.VERSION_CODES.O_MR1, then the Task will fail with an ApiException with the status code CommonStatusCodes.DEVELOPER_ERROR.