AIMCC Technote 6

Typing Indicator


Q: What is a proper way to set Typing State?
A: 1. when user presses a key - if the text field is not empty, perform the following two steps: - call put_InputState(AccImInputState_Typing), - set (or reset) a timer to fire 2 seconds from now 2. when there have been no key presses for 2 seconds - if the text field is empty, call put_InputState(AccImInputState_None) - otherwise, call put_InputState(AccImInputState_NotEmpty) 3. after an im is sent, stops the timer if it is running. Aimcc automatically sets typing state of a remote user to AccImInputState_None when an im is received.

rev. 2006/08/31