Skip to content

Most visited

Recently visited

navigation
Added in API level 16

WifiP2pManager.ServiceResponseListener

public static interface WifiP2pManager.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 void onServiceAvailable(int protocolType, byte[] responseData, WifiP2pDevice srcDevice)

The requested service response is available.

Public methods

onServiceAvailable

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

The requested service response is available.

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.