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

int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_STABILITY_LOCAL
int PARCELABLE_STABILITY_VINTF
int PARCELABLE_WRITE_RETURN_VALUE

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

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

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)