语言

L2capNetworkSpecifier.RemoteAddress 属性

定义

返回要连接到的此网络的远程 MAC 地址。

public Android.Net.MacAddress? RemoteAddress { [Android.Runtime.Register("getRemoteAddress", "()Landroid/net/MacAddress;", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getRemoteAddress", "()Landroid/net/MacAddress;", "", ApiSince=36)>]
member this.RemoteAddress : Android.Net.MacAddress

属性值

客户端网络的远程蓝牙 MAC 地址,如果未指定或编辑,则为 null。

特性

注解

返回要连接到的此网络的远程 MAC 地址。

远程地址仅对具有ROLE_CLIENT的网络有意义。

从连接 API(如 aL2capNetworkSpecifier)接收此ConnectivityManager.NetworkCallback地址时,将编辑 MAC 地址。

Java文档android.net.L2capNetworkSpecifier.getRemoteAddress()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于