Most visited

Recently visited

Added in API level 16

WifiP2pManager.ServiceResponseListener

public static interface WifiP2pManager.ServiceResponseListener

android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener


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

Summary

Public methods

abstract void onServiceAvailable(int protocolType, byte[] responseData, WifiP2pDevice srcDevice)

请求的服务响应可用。

Public methods

onServiceAvailable

Added in API level 16
void onServiceAvailable (int protocolType, 
                byte[] responseData, 
                WifiP2pDevice srcDevice)

请求的服务响应可用。

Parameters
protocolType int: protocol type. currently only SERVICE_TYPE_VENDOR_SPECIFIC.
responseData byte: service discovery response data based on the requested service protocol type. The format depends on the service type.
srcDevice WifiP2pDevice: source device.

Hooray!