Added in API level 16
ServiceResponseListener
interface ServiceResponseListener
android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener |
Interface for callback invocation when service discovery response other than Upnp or Bonjour is received
Summary
Public methods | |
---|---|
abstract Unit |
onServiceAvailable(protocolType: Int, responseData: ByteArray!, srcDevice: WifiP2pDevice!) The requested service response is available. |
Public methods
onServiceAvailable
Added in API level 16
abstract fun onServiceAvailable(
protocolType: Int,
responseData: ByteArray!,
srcDevice: WifiP2pDevice!
): Unit
The requested service response is available.
Parameters | |
---|---|
protocolType |
Int: protocol type. currently only WifiP2pServiceInfo#SERVICE_TYPE_VENDOR_SPECIFIC . |
responseData |
ByteArray!: service discovery response data based on the requested service protocol type. The format depends on the service type. |
srcDevice |
WifiP2pDevice!: source device. |