AI-generated Key Takeaways
-
MessageFilter is used to specify the set of messages to be received, where the filter must match the message, and it is the logical OR of multiple single filters.
-
The MessageFilter class includes a nested Builder class to create MessageFilter instances.
-
There is a static final MessageFilter field called INCLUDE_ALL_MY_TYPES that provides a convenient filter to return all message types published by the application's project.
-
The MessageFilter class implements the Parcelable interface, allowing it to be written to and read from a Parcel.
Used to specify the set of messages to be received. In order to receive a message, the
MessageFilter
must match the message. A MessageFilter
is the logical OR of multiple single filters.
Nested Class Summary
| class | MessageFilter.Builder | Builder for MessageFilter. |
|
Inherited Constant Summary
Field Summary
| public static final Creator<MessageFilter> | CREATOR | |
| public static final MessageFilter | INCLUDE_ALL_MY_TYPES | A convenient filter that returns all types of messages published by this application's project. |
Public Method Summary
| boolean | |
| int |
hashCode()
|
| String |
toString()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<MessageFilter> CREATOR
public static final MessageFilter INCLUDE_ALL_MY_TYPES
A convenient filter that returns all types of messages published by this application's project.