合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
尊敬的开发者,您好!
由于业务调整,我们将于2024年9月10日起不再支持新的开发者注册近距离通信服务,已开通近距离通信服务项目的开发者不受影响,仍可继续使用近距离通信服务,如有变更,我们会另行通知。感谢您的支持!
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> | 返回需过滤的域名及类型列表。 |
Method |
|---|
public int hashCode() 获取哈希值。 |
Returns
Type | Description |
|---|---|
int | 当前对象的哈希值。 |
Method |
|---|
public String toString() 把对象转化成可读的字符串。 |
Returns
Type | Description |
|---|---|
String | MessagePicker对象的可读字符串。 |
Method |
|---|
public void writeToParcel(Parcel dest, int flags) 序列化打包,把值写入dest容器。 |
Parameters
Name | Description |
|---|---|
dest | 对象被写入的Parcel。 |
flags | 写入方式,取值如下:
|