IncomingNotification Method
      
 

Description

Called when new notification is received from the server.


Return Type

None  


Syntax

object.IncomingNotification Owner, Contact, NotifyID, Data



The IncomingNotification Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodXMPPNotify.
Owner Required. A wodXMPP object.
Contact Required. A XMPPContact object.
NotifyID Required. A ContactNotifyEnum enumeration, as described in settings.
Data Required. A Variant value.

Settings

The settings for NotifyID are:

Constant Value Description
 UserTyping 1 User is typing.

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. Currently only one notification is provided - 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.