Back to product page

ContactStatusChange event


Fires when contact's status changes.

Syntax

  • Basic
Private Sub object_ContactStatusChange (ByRef Contact, ByRef ChatRoom, ByVal NewStatus, ByVal OldStatus)
The ContactStatusChange(Contact,ChatRoom,NewStatus,OldStatus) syntax has these parts:
ContactXMPPContact object
ChatRoomXMPPChatRoom object
NewStatusStatusEnum enumeration
OldStatusStatusEnum enumeration

Remarks

Fired each time when your contact changes his online status. When this happens, the event will provide you with two parameters, Contact - which provides you with the reference to XMPPContact object of the contact that changed his status, and OldStatus which provides you with information what your contact's previous status was.

If this contact is only from some chat room, ChatRoom argument will hold reference to the chat room.

When your contact is connected more than once using different resources, Resource property will contain all of them, but first one listed there is one that caused this event to fire.

Platforms

Windows