public static enum SendBird.Options.ThreadOption extends java.lang.Enum<SendBird.Options.ThreadOption>
ThreadOption
determines how SendBird
will manage or create threads when callbacks or events are called.
Refer to SendBird.Options.setThreadOption(ThreadOption, Handler)
.Enum Constant and Description |
---|
HANDLER
All callbacks or events will be called in the Android
Handler object, which is provided as a parameter. |
NEW_THREAD
All callbacks or events will be asynchronously called in new threads.
|
UI_THREAD
All callbacks or events will be called in the default Android UI thread.
|
Modifier and Type | Method and Description |
---|---|
static SendBird.Options.ThreadOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SendBird.Options.ThreadOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SendBird.Options.ThreadOption UI_THREAD
public static final SendBird.Options.ThreadOption NEW_THREAD
public static final SendBird.Options.ThreadOption HANDLER
Handler
object, which is provided as a parameter.public static SendBird.Options.ThreadOption[] values()
for (SendBird.Options.ThreadOption c : SendBird.Options.ThreadOption.values()) System.out.println(c);
public static SendBird.Options.ThreadOption 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.