public final class ChatController extends Object
VISIBLE
and GONE
.
This is basically a wrapper around ArrayAdapter
, with Bambuser-style automatic
show/hide. If such functionality is not desired, a simple ArrayAdapter
is recommended.
Modifier and Type | Class and Description |
---|---|
static interface |
ChatController.Observer |
Modifier and Type | Method and Description |
---|---|
void |
add(String msg)
Add a new chat message to the controller, showing the list view if currently hidden.
|
void |
destroy()
Shut down the controller, clearing the content from the list view and stopping callbacks.
|
boolean |
hasMessages() |
boolean |
isShown() |
void |
setObserver(ChatController.Observer observer) |
void |
show()
Display the chat list view, hiding it automatically again after a few seconds.
|
public void setObserver(ChatController.Observer observer)
public void destroy()
public void add(String msg)
msg
- Chat message stringpublic boolean hasMessages()
public void show()
public boolean isShown()