public enum MessageCollectionInitPolicy extends java.lang.Enum<MessageCollectionInitPolicy>
MessageCollection
.MessageCollection.initialize(MessageCollectionInitPolicy, MessageCollectionInitHandler).
Enum Constant and Description |
---|
CACHE_AND_REPLACE_BY_API
The api results received from
MessageCollectionInitHandler.onApiResult(List, SendBirdException)
should replace the cache results received from MessageCollectionInitHandler.onCacheResult(List, SendBirdException) . |
Modifier and Type | Method and Description |
---|---|
static MessageCollectionInitPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageCollectionInitPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageCollectionInitPolicy CACHE_AND_REPLACE_BY_API
MessageCollectionInitHandler.onApiResult(List, SendBirdException)
should replace the cache results received from MessageCollectionInitHandler.onCacheResult(List, SendBirdException)
.public static MessageCollectionInitPolicy[] values()
for (MessageCollectionInitPolicy c : MessageCollectionInitPolicy.values()) System.out.println(c);
public static MessageCollectionInitPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.