public interface OperationSetTypingNotifications extends OperationSet
An important thing of typing notifications is that they do not have the purpose of being relibable.
Modifier and Type | Field and Description |
---|---|
static int |
STATE_PAUSED
Indicates that a source contact had been typing a message to us but
has just paused.
|
static int |
STATE_STALE
Indicates that the typing state of a source contact has not been
updated for a while and is currently stale.
|
static int |
STATE_STOPPED
Indicates that a source contact had been typing a message to us but
has stopped a while ago.
|
static int |
STATE_TYPING
Indicates that a source contact is currently typing a message to us.
|
static int |
STATE_UNKNOWN
Indicates that the typing state of a source contact is not currently
known.
|
Modifier and Type | Method and Description |
---|---|
void |
addTypingNotificationsListener(TypingNotificationsListener l)
Adds l to the list of listeners registered for receiving
TypingNotificationEvents
|
void |
removeTypingNotificationsListener(TypingNotificationsListener l)
Removes l from the list of listeners registered for receiving
TypingNotificationEvents
|
void |
sendTypingNotification(Contact notifiedContact,
int typingState)
Sends a notification to notifiedContatct that we have entered
typingState.
|
static final int STATE_UNKNOWN
static final int STATE_TYPING
static final int STATE_STALE
static final int STATE_PAUSED
static final int STATE_STOPPED
void addTypingNotificationsListener(TypingNotificationsListener l)
l
- the TypingNotificationsListener listener that we'd like
to addvoid removeTypingNotificationsListener(TypingNotificationsListener l)
l
- the TypingNotificationsListener listener that we'd like
to removevoid sendTypingNotification(Contact notifiedContact, int typingState) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
notifiedContact
- the Contact to notifytypingState
- the typing state that we have entered.java.lang.IllegalStateException
- if the underlying ICQ stack is
not registered and initialized.java.lang.IllegalArgumentException
- if notifiedContact is
not an instance belonging to the underlying implementation.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.