Added in API level 16
ServiceResponseListener
Stay organized with collections
Save and categorize content based on your preferences.
interface 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. |
open Unit |
onUsdBasedServiceAvailable(srcDevice: WifiP2pDevice, usdResponseData: WifiP2pUsdBasedServiceResponse) The requested USD based 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. |
onUsdBasedServiceAvailable
Added in API level 36
open fun onUsdBasedServiceAvailable(
srcDevice: WifiP2pDevice,
usdResponseData: WifiP2pUsdBasedServiceResponse
): Unit
The requested USD based service response is available.
Parameters | |
---|---|
srcDevice |
WifiP2pDevice: source device. This value cannot be null . |
usdResponseData |
WifiP2pUsdBasedServiceResponse: WifiP2pUsdBasedServiceResponse . This value cannot be null . |