目录

BeaconStatus.BeaconData

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

[h2]getNamespace

Method

public abstract String getNamespace()

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

Returns

Type

Description

String

信标的命名空间。

[h2]getType

Method

public abstract String getType()

返回信标类型。

Returns

Type

Description

String

信标的类型。

[h2]getContent

Method

public abstract byte[] getContent()

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

Returns

Type

Description

byte[]

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

[h2]getBeaconId

Method

public abstract String getBeaconId()

返回信标的广播ID。

Returns

Type

Description

String

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