Back to product page

IncomingNotification callback method


Called when new notification is received.

Syntax

  • Basic
object.IncomingNotification (Owner, Contact, NotifyID, Data)
The IncomingNotification(object,Owner,Contact,NotifyID,Data) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP
ContactXMPPContact object
NotifyIDContactNotifyEnum enumeration
DataVariant.

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.

IncomingNotification notification method is called each time certain notification is received from the server. For example - UserTyping which is called when user starts (Data argument contains nonzero value) and when user stops (Data arguments contains zero value) typing. You can use it for typical "User is typing..." text shown in the chat screen.

Platforms

Windows