Class PushApi.Rule
- java.lang.Object
-
- io.github.ma1uta.matrix.client.api.PushApi.Rule
-
-
Field Summary
Fields Modifier and Type Field Description static StringCALLMatches any incoming VOIP call.static StringCONTAINS_DISPLAY_NAMEMatches any message whose content is unencrypted and contains the user's current display name in the room in which it was sent.static StringCONTAINS_USER_NAMEMatches any message whose content is unencrypted and contains the local part of the user's Matrix ID, separated by word boundaries.static StringENCRYPTEDMatches all encrypted events.static StringENCRYPTED_ROOM_ONE_TO_ONEMatches any encrypted event sent in a room with exactly two members.static StringINVITE_FOR_MEMatches any invites to a new room for this user.static StringMASTERMatches all events, this can be enabled to turn off all push notifications other than those generated by override rules set by the user.static StringMEMBER_EVENTMatches any m.room.member_event.static StringMESSAGEMatches all chat messages.static StringROOM_NOTIFMatches any message whose content is unencrypted and contains the text @room, signifying the whole room should be notified of the event.static StringROOM_ONE_TO_ONEMatches any message sent in a room with exactly two members.static StringSUPPRESS_NOTICESMatches messages with a msgtype of notice.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRule()
-
-
-
Field Detail
-
MASTER
public static final String MASTER
Matches all events, this can be enabled to turn off all push notifications other than those generated by override rules set by the user. By default this rule is disabled.- See Also:
- Constant Field Values
-
SUPPRESS_NOTICES
public static final String SUPPRESS_NOTICES
Matches messages with a msgtype of notice. This should be an override rule so that it takes priority over content/sender/room rules.- See Also:
- Constant Field Values
-
INVITE_FOR_ME
public static final String INVITE_FOR_ME
Matches any invites to a new room for this user.- See Also:
- Constant Field Values
-
MEMBER_EVENT
public static final String MEMBER_EVENT
Matches any m.room.member_event.- See Also:
- Constant Field Values
-
CONTAINS_DISPLAY_NAME
public static final String CONTAINS_DISPLAY_NAME
Matches any message whose content is unencrypted and contains the user's current display name in the room in which it was sent.- See Also:
- Constant Field Values
-
ROOM_NOTIF
public static final String ROOM_NOTIF
Matches any message whose content is unencrypted and contains the text @room, signifying the whole room should be notified of the event.- See Also:
- Constant Field Values
-
CONTAINS_USER_NAME
public static final String CONTAINS_USER_NAME
Matches any message whose content is unencrypted and contains the local part of the user's Matrix ID, separated by word boundaries.- See Also:
- Constant Field Values
-
CALL
public static final String CALL
Matches any incoming VOIP call.- See Also:
- Constant Field Values
-
ENCRYPTED_ROOM_ONE_TO_ONE
public static final String ENCRYPTED_ROOM_ONE_TO_ONE
Matches any encrypted event sent in a room with exactly two members. Unlike other push rules, this rule cannot be matched against the content of the event by nature of it being encrypted. This causes the rule to be an "all or nothing" match where it either matches all events that are encrypted (in 1:1 rooms) or none.- See Also:
- Constant Field Values
-
ROOM_ONE_TO_ONE
public static final String ROOM_ONE_TO_ONE
Matches any message sent in a room with exactly two members.- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
Matches all chat messages.- See Also:
- Constant Field Values
-
ENCRYPTED
public static final String ENCRYPTED
Matches all encrypted events. Unlike other push rules, this rule cannot be matched against the content of the event by nature of it being encrypted. This causes the rule to be an "all or nothing" match where it either matches all events that are encrypted (in 1:1 rooms) or none.- See Also:
- Constant Field Values
-
-