to top
Android APIs
Added in API level 16
public static interface

WifiP2pManager.ServiceResponseListener

android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener

Class Overview

Interface for callback invocation when service discovery response other than Upnp or Bonjour is received

Summary

Public Methods

? Examples
abstract void onServiceAvailable(int protocolType, byte[] responseData, WifiP2pDevice srcDevice)
The requested service response is available.

Public Methods

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

Added in API level 16

The requested service response is available.

Parameters
protocolType protocol type. currently only SERVICE_TYPE_VENDOR_SPECIFIC.
responseData service discovery response data based on the requested service protocol type. The format depends on the service type.
srcDevice source device.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.