目录

BeaconMsgCondition

Class Info

public class BeaconMsgCondition implements Parcelable

定义信标消息附件过滤条件,只有符合此条件定义的信标会触发通知。

如果有多个过滤条件,不同条件间为逻辑或关系,符合任意一条条件即会触发通知。

注意:

使用此条件,需要待过滤的信标在云端注册并配置消息附件。

Public Field Summary

Qualifier and Type

Field and Description

static final Parcelable.Creator<BeaconMsgCondition >

CREATOR

实现Parcelable接口必须提供的实例。

Public Method Summary

Qualifier and Type

Method Name and Description

final int

describeContents()

返回当前Parcelable对象描述。

boolean

equals(Object object)

判断其他对象是否与本实例相同。

String

getBeaconId()

获取信标ID。

int

getBeaconType()

获取信标类型。

String

getNamespace()

获取定义的命名空间。

String

getType()

获取定义的类型。

int

hashCode()

获取哈希值。

String

toString()

把对象转化成可读的字符串。

final void

writeToParcel(Parcel dest, int flags)

序列化打包。

Public Fields

[h2]CREATOR

Fields

public static final Parcelable.Creator<BeaconMsgCondition > CREATOR

实现Parcelable接口必须提供的实例。

Public Methods

[h2]describeContents

Method

public final int describeContents()

返回当前Parcelable对象描述。

Returns

Type

Description

int

当前Parcelable对象描述。返回值如下:

  • 0:普通Parcelable对象。
  • 1:包含文件描述符的Parcelable对象。

[h2]equals

Method

public boolean equals(Object object)

判断其他对象是否与本实例相同。

Parameters

Name

Description

object

其他对象。

Returns

Type

Description

boolean

  • true:相同。
  • false:不相同。

[h2]getBeaconId

Method

public String getBeaconId()

获取信标ID。

Returns

Type

Description

String

返回信标ID。

[h2]getBeaconType

Method

public int getbeaconType()

获取信标类型。

Returns

Type

Description

int

返回信标类型,类型请查看BeaconPicker。

[h2]getNamespace

Method

public String getNamespace()

获取定义的命名空间。

Returns

Type

Description

String

返回定义的命名空间。

[h2]getType

Method

public String getType()

获取定义的类型。

Returns

Type

Description

String

返回定义的类型。

[h2]hashCode

Method

public int hashCode()

获取哈希值。

Returns

Type

Description

int

当前对象的哈希值。

[h2]toString

Method

public String toString()

把对象转化成可读的字符串。

Returns

Type

Description

String

BeaconMsgCondition对象的可读字符串。

[h2]writeToParcel

Method

public final void writeToParcel(Parcel dest, int flags)

序列化打包,把值写入dest容器。

Parameters

Name

Description

dest

对象被写入的Parcel。

flags

写入方式,取值如下:

  • 0。
  • PARCELABLE_WRITE_RETURN_VALUE(详情查看Parcelable接口类)。