Added in API level 16

WifiP2pDnsSdServiceInfo


open class WifiP2pDnsSdServiceInfo : WifiP2pServiceInfo
kotlin.Any
   ↳ android.net.wifi.p2p.nsd.WifiP2pServiceInfo
   ↳ android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceInfo

A class for storing Bonjour service information that is advertised over a Wi-Fi peer-to-peer setup. {@see android.net.wifi.p2p.WifiP2pManager#addLocalService} {@see android.net.wifi.p2p.WifiP2pManager#removeLocalService} {@see WifiP2pServiceInfo} {@see WifiP2pUpnpServiceInfo}

Summary

Inherited constants
Public methods
open static WifiP2pDnsSdServiceInfo!
newInstance(instanceName: String!, serviceType: String!, txtMap: MutableMap<String!, String!>!)

Create a Bonjour service information object.

Inherited functions

Public methods

newInstance

Added in API level 16
open static fun newInstance(
    instanceName: String!,
    serviceType: String!,
    txtMap: MutableMap<String!, String!>!
): WifiP2pDnsSdServiceInfo!

Create a Bonjour service information object.

Parameters
instanceName String!: instance name.
e.g) "MyPrinter"
serviceType String!: service type.
e.g) "_ipp._tcp"
txtMap MutableMap<String!, String!>!: TXT record with key/value pair in a map confirming to format defined at http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt
Return
WifiP2pDnsSdServiceInfo! Bonjour service information object