| java.lang.Object | |
| ↳ | com.google.android.gms.nearby.messages.MessageFilter.Builder |
Builder for MessageFilter.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Builds an instance of
MessageFilter. | |||||||||||
Filters for all messages published by this application (and any other applications
in the same Google Developers Console project), regardless of type.
| |||||||||||
Includes
Eddystone UIDs.
| |||||||||||
Includes the previously constructed filter.
| |||||||||||
Includes iBeacon IDs.
| |||||||||||
Filters for all messages in the given
namespace with the given type. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Filters for all messages published by this application (and any other applications in the same Google Developers Console project), regardless of type.
Includes Eddystone UIDs.
Eddystone UID messages will have namespace=MESSAGE_NAMESPACE_RESERVED,
and type=MESSAGE_TYPE_EDDYSTONE_UID. Use
from(Message) to parse the message content.
| hexNamespace | The 10-byte Eddystone UID namespace in hex format. For example, "a032ffed0532bca3846d". |
|---|---|
| hexInstance | An optional 6-byte Eddystone UID instance in hex format. For example, "00aabbcc2233". |
Includes the previously constructed filter.
Includes iBeacon IDs.
iBeacon ID messages will have namespace=MESSAGE_NAMESPACE_RESERVED,
and type=MESSAGE_TYPE_I_BEACON_ID. Use from(Message)
to parse the message content.
| proximityUuid | The proximity UUID. |
|---|---|
| major | An optional major value. |
| minor | An optional minor value. |
Filters for all messages in the given namespace with the given type.
Namespaces are currently only settable for messages published via beacons.
| namespace | The namespace that the message belongs to. It must be non-empty and cannot contain the following invalid character: star(*). |
|---|---|
| type | The type of the message to include. It must non-null and cannot contain the following invalid character: star(*). |
| IllegalArgumentException | if namespace or type is not valid. |
|---|