AttachCallback.OnAttached(WifiAwareSession) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
感知附加操作时调用
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 对象,例如发现、连接。
- 特性
注解
当感知附加操作 WifiAwareManager#attach(AttachCallback, android.os.Handler) 完成并且现在可以启动发现会话或连接时调用。
Java文档android.net.wifi.aware.AttachCallback.onAttached(android.net.wifi.aware.WifiAwareSession)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。