DnsSdServiceInfo

class DnsSdServiceInfo : Parcelable


Information about a resolved Matter DNS-SD service.

Summary

Nested types

Builder class to generate DnsSdServiceInfo instances.

Public functions

java-static DnsSdServiceInfo.Builder!

Returns an empty Builder instance.

Boolean
equals(o: Any?)
NetworkLocation!

Returns the highest priority NetworkLocation from getNetworkLocations.

String?

Returns the value of the TxtRecord that matches the given key, if present; else returns null.

Boolean

Returns true if there is a TXT record for the given key.

Int
String!
Unit
writeToParcel(dest: Parcel!, flags: Int)

Inherited functions

From android.os.Parcelable

Public functions

builder

java-static fun builder(): DnsSdServiceInfo.Builder!

Returns an empty Builder instance.

equals

fun equals(o: Any?): Boolean

getPrimaryNetworkLocation

fun getPrimaryNetworkLocation(): NetworkLocation!

Returns the highest priority NetworkLocation from getNetworkLocations. This is always equivalent to the first entry in getNetworkLocations and is provided as a convenience.

getTxtAttributeValue

fun getTxtAttributeValue(key: String!): String?

Returns the value of the TxtRecord that matches the given key, if present; else returns null.

Parameters
key: String!

the attribute key; case is ignored when matching

hasTxtAttribute

fun hasTxtAttribute(key: String!): Boolean

Returns true if there is a TXT record for the given key.

Parameters
key: String!

the attribute key; case is ignored when matching

hashCode

fun hashCode(): Int

toString

fun toString(): String!

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

instanceName

val instanceNameString!

networkLocations

val networkLocations: (Mutable)List<NetworkLocation!>!

serviceType

val serviceTypeString!

txtRecords

val txtRecords: (Mutable)List<TxtRecord!>!