Back to product page

ContactStatusChange callback method


Called when contact's status changes.

Syntax

  • Basic
object.ContactStatusChange (Owner, Contact, ChatRoom, NewStatus, OldStatus)
The ContactStatusChange(object,Owner,Contact,ChatRoom,NewStatus,OldStatus) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP
ContactXMPPContact object
ChatRoomXMPPChatRoom object
NewStatusStatusEnum enumeration
OldStatusStatusEnum enumeration

Remarks

This method is called only if you implemented IwodXMPPNotify interface in your application, and wodXMPP.Notification property has received reference to instance of your implementation.

Called each time when your contact changes his online status. When this happens, the notification method 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 notification method to be called.

Platforms

Windows