Added in API level 16

DnsSdServiceResponseListener


interface DnsSdServiceResponseListener
android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener

Interface for callback invocation when Bonjour service discovery response is received

Summary

Public methods
abstract Unit
onDnsSdServiceAvailable(instanceName: String!, registrationType: String!, srcDevice: WifiP2pDevice!)

The requested Bonjour service response is available.

Public methods

onDnsSdServiceAvailable

Added in API level 16
abstract fun onDnsSdServiceAvailable(
    instanceName: String!,
    registrationType: String!,
    srcDevice: WifiP2pDevice!
): Unit

The requested Bonjour service response is available.

This function is invoked when the device with the specified Bonjour registration type returned the instance name.

Parameters
instanceName String!: instance name.
e.g) "MyPrinter".
registrationType String!:
e.g) "_ipp._tcp.local."
srcDevice WifiP2pDevice!: source device.