Android APIs
Added in API level 16
public static interface

WifiP2pManager.DnsSdServiceResponseListener

android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener

Class Overview

Interface for callback invocation when Bonjour service discovery response is received

Summary

Public Methods
abstract void onDnsSdServiceAvailable(String instanceName, String registrationType, WifiP2pDevice srcDevice)
The requested Bonjour service response is available.

Public Methods

public abstract void onDnsSdServiceAvailable (String instanceName, String registrationType, WifiP2pDevice srcDevice)

Added in API level 16

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.