管理中心
API参考情景感知服务Androidcom.huawei.hms.kit.awareness.statusInterface SummaryBeaconStatus.BeaconData

BeaconStatus.BeaconData

  • 支持的场景:手机。
  • 支持的OS:EMUI 7.0及以上,Android 7.0及以上。
展开

Interface Info

public static interface BeaconStatus.BeaconData

信标信息接口类,用于返回信标相关信息。

Public Method Summary

展开

Qualifier and Type

Method Name

abstract String

getNamespace()

abstract String

getType()

abstract byte[]

getContent()

abstract String

getBeaconId()

Public Methods

getNamespace

展开

Method

public abstract String getNamespace()

获取信标命名空间,返回信标命名空间。

Returns

展开

Type

Description

String

信标的命名空间。

getType

展开

Method

public abstract String getType()

返回信标类型。

Returns

展开

Type

Description

String

信标的类型。

getContent

展开

Method

public abstract byte[] getContent()

如果存在信标信息,则返回信标信息内容。

Returns

展开

Type

Description

byte[]

返回信标信息的内容;如果没有内容,则返回值为null。

getBeaconId

展开

Method

public abstract String getBeaconId()

返回信标的广播ID。

Returns

展开

Type

Description

String

返回信标的广播ID,应与广播ID过滤器配合使用;否则当使用附件信息过滤器时,该方法的返回值始终为空字符串。

在 API参考 中进行搜索
请输入您想要搜索的关键词