Class Info |
|---|
public class MessagePicker implements Parcelable 定义消息过滤条件,在获取消息get过程中,只有符合此条件定义的目标消息会触发MessageHandler中的函数回调。 如果有多个过滤条件,不同条件间为逻辑或关系,符合任意一条条件的消息即会触发回调。 |
Qualifier and Type | Class Name and Description |
|---|---|
static final class | MessagePicker的构造类。 |
Qualifier and Type | Field and Description |
|---|---|
static final Parcelable.Creator<MessagePicker> | 实现Parcelable接口必须提供的实例。 |
static final MessagePicker | 此过滤条件为获取当前App所属开发者联盟项目下所有已发布的消息(包括App发布的消息和Beacon消息)。 |
Qualifier and Type | Method Name and Description |
|---|---|
int | 返回当前Parcelable对象描述。 |
boolean | equals(Object object) 判断其他对象是否与本实例相同。 |
List<IBeaconInfo> | 获取过滤条件内的iBeacon列表。 |
List<UidInstance> | 获取过滤条件内的EddyStone UID列表。 |
boolean | 是否获取所有类型的消息。 |
List<NamespaceType> | 获取过滤条件内的域名及类型列表。 |
int | hashCode() 获取哈希值。 |
String | toString() 把对象转化成可读的字符串。 |
void | writeToParcel(Parcel dest, int flags) 序列化打包。 |
Fields |
|---|
public static final Parcelable.Creator<MessagePicker> CREATOR 实现Parcelable接口必须提供的实例。 |
Fields |
|---|
public static final MessagePicker INCLUDE_ALL_TYPES 此过滤条件为获取当前App所属开发者联盟项目下所有已发布的消息(包括App发布的消息和Beacon消息)。 Constant Value:"INCLUDE_ALL_TYPES" |
Method |
|---|
public int describeContents() 返回当前Parcelable对象描述。 |
Returns
Type | Description |
|---|---|
int | 当前Parcelable对象描述。返回值如下:
|
Method |
|---|
public boolean equals(Object object) 判断其他对象是否与本实例相同。 |
Parameters
Name | Description |
|---|---|
object | 其他对象。 |
Returns
Type | Description |
|---|---|
boolean |
|
Method |
|---|
public List<IBeaconInfo> getBeaconInfo() 获取过滤条件内的iBeacon列表。 |
Returns
Type | Description |
|---|---|
List<IBeaconInfo> | 返回需过滤的IBeacon信标信息列表。 |
Method |
|---|
public List<UidInstance> getEddystoneUid() 获取过滤条件内的EddyStone UID列表。 |
Returns
Type | Description |
|---|---|
List<UidInstance> | 返回需过滤的EddyStone UID信标信息列表。 |
Method |
|---|
public boolean getIncludeAll() 是否获取所有类型的消息。 |
Returns
Type | Description |
|---|---|
boolean |
|
Method |
|---|
public List<NamespaceType> getMsgType() 获取过滤条件内的域名及类型列表。 |
Returns
Type | Description |
|---|---|
List<NamespaceType> | 返回需过滤的域名及类型列表。 |