Class EligibleForChatMarkerFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.StanzaExtensionFilter
-
- org.jivesoftware.smackx.chat_markers.filter.EligibleForChatMarkerFilter
-
- All Implemented Interfaces:
org.jivesoftware.smack.filter.StanzaFilter,org.jivesoftware.smack.util.Predicate<org.jivesoftware.smack.packet.Stanza>
public final class EligibleForChatMarkerFilter extends org.jivesoftware.smack.filter.StanzaExtensionFilterChat Markers Manager class (XEP-0333).- See Also:
- XEP-0333: Chat Markers
-
-
Field Summary
Fields Modifier and Type Field Description static EligibleForChatMarkerFilterINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(org.jivesoftware.smack.packet.Stanza message)From XEP-0333, Protocol Format: The Chat Marker MUST have an 'id' which is the 'id' of the message being marked.
In order to make Chat Markers works together with XEP-0085 as it said in 8.5 Interaction with Chat States, only messages withactivechat state are accepted.
-
-
-
Field Detail
-
INSTANCE
public static final EligibleForChatMarkerFilter INSTANCE
-
-
Method Detail
-
accept
public boolean accept(org.jivesoftware.smack.packet.Stanza message)
From XEP-0333, Protocol Format: The Chat Marker MUST have an 'id' which is the 'id' of the message being marked.
In order to make Chat Markers works together with XEP-0085 as it said in 8.5 Interaction with Chat States, only messages withactivechat state are accepted.- Specified by:
acceptin interfaceorg.jivesoftware.smack.filter.StanzaFilter- Overrides:
acceptin classorg.jivesoftware.smack.filter.StanzaExtensionFilter- Parameters:
message- to be analyzed.- Returns:
- true if the message contains a stanza Id.
- See Also:
- XEP-0333: Chat Markers
-
-