Package io.getstream.chat.android.models
Object PushPreferenceLevel.Companion
-
- All Implemented Interfaces:
public class PushPreferenceLevel.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final PushPreferenceLevelallprivate final PushPreferenceLevelmentionsprivate final PushPreferenceLevelnonepublic final static PushPreferenceLevel.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final PushPreferenceLevelfromValue(String value)Returns the PushPreferenceLevel corresponding to the given string value. final PushPreferenceLevelgetAll()Receive notifications for all messages. final PushPreferenceLevelgetMentions()Receive notifications only for mentions. final PushPreferenceLevelgetNone()Do not receive any notifications. -
-
Method Detail
-
fromValue
final PushPreferenceLevel fromValue(String value)
Returns the PushPreferenceLevel corresponding to the given string value.
- Parameters:
value- The string representation of the chat level.- Returns:
The corresponding PushPreferenceLevel or null if no match is found.
-
getAll
final PushPreferenceLevel getAll()
Receive notifications for all messages.
-
getMentions
final PushPreferenceLevel getMentions()
Receive notifications only for mentions.
-
getNone
final PushPreferenceLevel getNone()
Do not receive any notifications.
-
-
-
-