Partager via


AttachCallback.OnAttached(WifiAwareSession) Method

Definition

Called when Aware attach operation WifiAwareManager#attach(AttachCallback, android.os.Handler) is completed and that we can now start discovery sessions or connections.

[Android.Runtime.Register("onAttached", "(Landroid/net/wifi/aware/WifiAwareSession;)V", "GetOnAttached_Landroid_net_wifi_aware_WifiAwareSession_Handler", ApiSince=26)]
public virtual void OnAttached (Android.Net.Wifi.Aware.WifiAwareSession? session);
[<Android.Runtime.Register("onAttached", "(Landroid/net/wifi/aware/WifiAwareSession;)V", "GetOnAttached_Landroid_net_wifi_aware_WifiAwareSession_Handler", ApiSince=26)>]
abstract member OnAttached : Android.Net.Wifi.Aware.WifiAwareSession -> unit
override this.OnAttached : Android.Net.Wifi.Aware.WifiAwareSession -> unit

Parameters

session
WifiAwareSession

The Aware object on which we can execute further Aware operations - e.g. discovery, connections.

Attributes

Remarks

Called when Aware attach operation WifiAwareManager#attach(AttachCallback, android.os.Handler) is completed and that we can now start discovery sessions or connections.

Java documentation for android.net.wifi.aware.AttachCallback.onAttached(android.net.wifi.aware.WifiAwareSession).

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