Back to product page

ServiceRegister callback method


Called when result is received for service register attempt.

Syntax

  • Basic
object.ServiceRegister (Owner, Service, success, Instructions)
The ServiceRegister(object,Owner,Service,success,Instructions) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP
ServiceXMPPService object
successA Boolean value. Provides the result of registration attempt.
InstructionsA String value. Allows you to provide any additional instructions.

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 an attempt to register some service is made. This notification method is also triggered as a result of executing RegisterInfo method for some specific Service. Using provided arguments you can determine if further steps are required in registration. For example, if Success is set to False you may review value of Instructions argument to see what do you need to provide in order to register the service successfully.

Platforms

Windows