The Contact Screen

A typical Yahoo Messenger contact screen will show the following:

  1. Your presence state
  2. Your presence message
  3. Your contacts
  4. The presence state of those contacts
  5. The presence message of those contacts
  6. User and contact display images, if available

The term presence with the Yahoo Messenger IM SDK refers to a state, and optionally a String-based message, that is broadcast to contacts and tells them your current status. The Yahoo Messenger IM SDK pre-define four states, represented internally by integer values.

Value State
-1 User is offline
0 User is online
2 User is busy
999 User is idle

Graphically, the presence states are displayed using circular icons. See the Requirements chapter for more information on acceptable icons for presence states.

The following figure shows the contact screen for the iPhone Yahoo Messenger client.

Table of Contents