Back to product page

StateChange callback method


Called when wodXMPP changes its state.

Syntax

  • Basic
object.StateChange (Owner, OldState)
The StateChange(object,Owner,OldState) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP
OldStateStatesEnum 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.

StateChange notification method is called each time wodXMPP internal state changes. Initially, it is set to Disconnected. Once you initiate new connection, it will change to Connecting, etc.. Using this notification method you can see if there is something happening with wodXMPP, or it is idle. You can determine current state using State property.

Platforms

Windows