AttachCallback.OnAttached(WifiAwareSession) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 Aware attach 操作時呼叫
WifiAwareManager#attach(AttachCallback, android.os.Handler) 已經完成,我們現在可以開始探索會談或連線了。
[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
參數
- session
- WifiAwareSession
Aware 物件,我們可以執行進一步的 Aware 操作——例如發現、連線。
- 屬性
備註
當 Aware 連接操作 WifiAwareManager#attach(AttachCallback, android.os.Handler) 完成,我們現在可以開始發現會話或連線時呼叫。
Java 文件 android.net.wifi.aware.AttachCallback.onAttached(android.net.wifi.aware.WifiAwareSession)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。