目录

Public Constructor Summary

Constructor
public MessagePicker.Builder()
Creates an instance of MessagePicker.

Public Method Summary

Return typeMethod name
MessagePickerbuild()
Creates an instance of MessagePicker.
MessagePicker.BuilderincludeAllTypes()
Picks among all messages published by the app.
MessagePicker.BuilderincludeEddystoneUids(String hexNamespace, String hexInstance)
Includes Eddystone UIDs.
MessagePicker.BuilderincludePicker(MessagePicker picker)
Includes the previously constructed picker.
MessagePicker.BuilderincludeIBeaconIds(UUID proximityUuid, Short major, Short minor)
Includes iBeacon IDs.
MessagePicker.BuilderincludeNamespaceType(String namespace, String type)
Picks among all messages in the specified namespace and with the specified type. A namespace can be specified only for beacon messages.

Public Constructors

Constructor
public MessagePicker.Builder()
Creates an instance of MessagePicker.

Public Methods

Method
public MessagePicker build()
Creates an instance of MessagePicker.
Method
public MessagePicker.Builder includeAllTypes()
Includes all messages published by the app.
Method
public MessagePicker.Builder includeEddystoneUids(String hexNamespace, String hexInstance)
Includes Eddystone UIDs.An Eddystone UID message contains the following information:
namespace = MESSAGE_NAMESPACE_RESERVED
type = MESSAGE_TYPE_EDDYSTONE_UID
Use parse(Message) to parse the message content.

Parameters

Parameter nameParameter desc
hexNamespace10-byte namespace of an Eddystone UID (in hexadecimal format), for example, c526dfec5403adc62585.
hexInstance6-byte instance of an Eddystone UID (in hexadecimal format), for example, 32ddbcad1576.
Method
public MessagePicker.Builder includePicker(MessagePicker picker)
Includes the previously constructed picker.

Parameters

Parameter nameParameter desc
messagePickermessagePicker object.
Method
public MessagePicker.Builder includeIBeaconIds(UUID proximityUuid, Short major, Short minor)
Includes iBeacon ID messages. An iBeacon ID message contains the following information:
namespace = MESSAGE_NAMESPACE_RESERVED
type = MESSAGE_TYPE_I_BEACON_ID
Use parse(Message) to parse the message content.

Parameters

Parameter nameParameter desc
proximityUuidProximity UUID.
majorMajor value.
minorMinor value.
Method
public MessagePicker.Builder includeNamespaceType(String namespace, String type)
Picks among all messages in the specified namespace and with the specified type. A namespace can be specified only for beacon messages.

Parameters

Parameter nameParameter desc
namespaceNamespace of a message. The value cannot be empty or contain asterisks (*).
typeType of a message. The value cannot be empty or contain asterisks (*).