次の方法で共有


WifiP2pManager.IWifiP2pListener.OnDiscoveryStateChanged(Int32) Method

Definition

Called when peer discovery has either started or stopped.

[Android.Runtime.Register("onDiscoveryStateChanged", "(I)V", "GetOnDiscoveryStateChanged_IHandler:Android.Net.Wifi.P2p.WifiP2pManager/IWifiP2pListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual void OnDiscoveryStateChanged (int state);
[<Android.Runtime.Register("onDiscoveryStateChanged", "(I)V", "GetOnDiscoveryStateChanged_IHandler:Android.Net.Wifi.P2p.WifiP2pManager/IWifiP2pListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member OnDiscoveryStateChanged : int -> unit
override this.OnDiscoveryStateChanged : int -> unit

Parameters

state
Int32

indicates whether discovery has started or stopped.

Attributes

Remarks

Called when peer discovery has either started or stopped.

Java documentation for android.net.wifi.p2p.WifiP2pManager.WifiP2pListener.onDiscoveryStateChanged(int).

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