public class NexmoTypingEvent extends NexmoEvent
Represents the typing state in a conversation dispatched by NexmoTypingEventListener.
Start typing state:
conversation.startTyping(); conversation.startTyping();
Listening for the typing sate typing state:
 conversation.addTypingEventListener(new NexmoTypingEventListener() {
    @Override
    public void onTyping(NexmoTypingEvent typingEvent) {
        String userName = typingEvent.getFromMember().getUser().getName();
        String typingState;
        if (typingEvent.getState() == NexmoTypingState.ON) {
            typingState = "typing";
        } else {
            typingState = "not typing";
        }
        Log.d("onTypingEvent", "User " + userName + " is " + typingState);
    }
 });
 
 Retrieve typing events from conversation:
conversation.getEvents(100, NexmoPageOrder.NexmoMPageOrderAsc, null, new NexmoRequestListener() { @Override public void onSuccess(@Nullable NexmoEventsPage eventsPage) { for (NexmoEvent event : eventsPage.getData()) { if (event instanceof NexmoTypingEvent) { // typing event } } } @Override public void onError(@NonNull NexmoApiError apiError) { } }); 
| Modifier and Type | Field and Description | 
|---|---|
static android.os.Parcelable.Creator<NexmoTypingEvent> | 
CREATOR  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
describeContents()  | 
boolean | 
equals(java.lang.Object o)  | 
NexmoTypingState | 
getState()
Gets the typing state. 
 | 
int | 
hashCode()  | 
java.lang.String | 
toString()  | 
void | 
writeToParcel(android.os.Parcel dest,
             int flags)  | 
getConversation, getConversationId, getCreationDate, getEmbeddedInfo, getEventType, getFromMemberId, getId, markEventState, updateEventStatepublic static final android.os.Parcelable.Creator<NexmoTypingEvent> CREATOR
public NexmoTypingState getState()
public java.lang.String toString()
toString in class NexmoEventpublic boolean equals(java.lang.Object o)
equals in class NexmoEventpublic int hashCode()
hashCode in class NexmoEventpublic int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class NexmoEventpublic void writeToParcel(android.os.Parcel dest,
                          int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class NexmoEvent