Most visited

Recently visited

Added in API level 16

WifiP2pManager.DnsSdServiceResponseListener

public static interface WifiP2pManager.DnsSdServiceResponseListener

android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener


接收到Bonjour服务发现响应时的回调调用接口

Summary

Public methods

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

请求的Bonjour服务响应可用。

Public methods

onDnsSdServiceAvailable

Added in API level 16
void onDnsSdServiceAvailable (String instanceName, 
                String registrationType, 
                WifiP2pDevice srcDevice)

请求的Bonjour服务响应可用。

当具有指定Bonjour注册类型的设备返回实例名称时,将调用此函数。

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

Hooray!