다음을 통해 공유


WifiP2pManager.IServiceResponseListener.OnServiceAvailable Method

Definition

The requested service response is available.

[Android.Runtime.Register("onServiceAvailable", "(I[BLandroid/net/wifi/p2p/WifiP2pDevice;)V", "GetOnServiceAvailable_IarrayBLandroid_net_wifi_p2p_WifiP2pDevice_Handler:Android.Net.Wifi.P2p.WifiP2pManager/IServiceResponseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnServiceAvailable (Android.Net.Wifi.P2p.Nsd.ServiceType protocolType, byte[]? responseData, Android.Net.Wifi.P2p.WifiP2pDevice? srcDevice);
[<Android.Runtime.Register("onServiceAvailable", "(I[BLandroid/net/wifi/p2p/WifiP2pDevice;)V", "GetOnServiceAvailable_IarrayBLandroid_net_wifi_p2p_WifiP2pDevice_Handler:Android.Net.Wifi.P2p.WifiP2pManager/IServiceResponseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnServiceAvailable : Android.Net.Wifi.P2p.Nsd.ServiceType * byte[] * Android.Net.Wifi.P2p.WifiP2pDevice -> unit

Parameters

protocolType
ServiceType

protocol type. currently only WifiP2pServiceInfo#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.

Attributes

Remarks

The requested service response is available.

Java documentation for android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener.onServiceAvailable(int, byte[], android.net.wifi.p2p.WifiP2pDevice).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to