ResolveServiceRequest

public final class ResolveServiceRequest extends Object
implements Parcelable

Request for DNS-SD resolution to indicate information about the service to be resolved.

Constant Summary

String SERVICE_TYPE_COMMISSIONABLE DNS-SD service type for a commissionable Matter service.
String SERVICE_TYPE_OPERATIONAL DNS-SD service type for an operational Matter service.

Inherited Constant Summary

Public Method Summary

static ResolveServiceRequest
create(String instanceName, String serviceType)
Creates a new ResolveServiceRequest.
boolean
String
getInstanceName()
Returns the DNS-SD instance name.
String
getServiceType()
Returns the DNS-SD service type.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Constants

public static final String SERVICE_TYPE_COMMISSIONABLE

DNS-SD service type for a commissionable Matter service.

Constant Value: "_matterc._udp"

public static final String SERVICE_TYPE_OPERATIONAL

DNS-SD service type for an operational Matter service.

Constant Value: "_matter._tcp"

Public Methods

public static ResolveServiceRequest create (String instanceName, String serviceType)

Creates a new ResolveServiceRequest.

Parameters
instanceName the DNS-SD instance name of the service to resolve
serviceType the type of the service to discover (one of SERVICE_TYPE_COMMISSIONABLE, one of SERVICE_TYPE_OPERATIONAL)
Throws
IllegalArgumentException if serviceType or instanceName are empty

public boolean equals (Object o)

public String getInstanceName ()

Returns the DNS-SD instance name.

public String getServiceType ()

Returns the DNS-SD service type.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)