Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodXMPP
- Methods
- Properties
- Authentication
- AutoVisible
- BackColor
- Blocking
- BorderVisible
- Capabilities
- ChatRooms
- CombineResources
- Contacts
- Enabled
- Features
- Files
- FillColor
- Font
- ForeColor
- Identity
- Language
- LastError
- LastErrorText
- Login
- Notification
- Password
- Picture
- Port
- Priority
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- Register
- Resource
- RowHeight
- SecureMethod
- Security
- Services
- ServicesFiltered
- ShowMyself
- SmallFont
- State
- StateText
- Status
- StatusText
- TabStop
- Timeout
- UseUPnP
- VCard
- Version
- Events
- ChatRoomData
- ChatRoomInvite
- ChatRoomListDone
- Click
- Connected
- ContactAuthRequest
- ContactList
- ContactSearchDone
- ContactStatusChange
- DblClick
- Disconnected
- Error
- FileTransferEnd
- FileTransferProgress
- FileTransferStart
- HostCertificate
- IncomingMessage
- IncomingNotification
- Pong
- PreTranslateCommand
- PreTranslateReply
- PrivateData
- ServiceRegister
- ServiceStatusChange
- StateChange
- UnhandledIQ
- VCardDetails
- IwodXMPPNotify
- Methods
- ChatRoomData
- ChatRoomInvite
- ChatRoomListDone
- Connected
- ContactAuthRequest
- ContactList
- ContactSearchDone
- ContactStatusChange
- Disconnected
- Error
- FileTransferEnd
- FileTransferProgress
- FileTransferStart
- HostCertificate
- IncomingMessage
- IncomingNotification
- Pong
- PreTranslateCommand
- PreTranslateReply
- PrivateData
- ServiceRegister
- ServiceStatusChange
- StateChange
- UnhandledIQ
- VCardDetails
- Methods
- XMPPChatRoom
- XMPPChatRooms
- XMPPContact
- XMPPContacts
- XMPPFeature
- XMPPFeatures
- XMPPFile
- XMPPFiles
- XMPPIdentities
- XMPPIdentity
- XMPPMessage
- XMPPService
- XMPPServices
- XMPPTag
- XMPPTags
- XMPPVar
- XMPPVars
- XMPPVCard
- Methods
- Properties
- BirthDay
- Description
- FirstName
- FullName
- HomeAddress
- HomeAddressExt
- HomeCellPhone
- HomeCity
- HomeCountry
- HomeFax
- HomePhone
- HomeState
- HomeZip
- JID
- LastName
- MiddleName
- NickName
- OrganizationName
- OrganizationUnit
- Photo
- PhotoData
- PhotoURL
- Role
- Title
- URL
- WorkAddress
- WorkAddressExt
- WorkCellPhone
- WorkCity
- WorkCountry
- WorkFax
- WorkPhone
- WorkState
- WorkZip
- wodXMPP
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Notification property
Fast notifications interface.
Type
IwodXMPPNotify interface.Syntax
- Basic
[Set] object.Notification [= value]
The Notification(object,value) syntax has these parts:
The Notification(object,value) syntax has these parts:
object | An expression evaluating to an object of type wodXMPP |
value | IwodXMPPNotify interface. |
Remarks
Available only in Component (DLL, windowless) version!Notification property holds reference to IwodXMPPNotify interface that can be implemented by your application. When this property is set, and contains such a reference, wodXMPPCom will call your method implementations instead of firing events. More information on how this works can be found here.
For example, instead of having this in your code (VB example):
Private Sub XMPP1_Connected()
End Sub
End Sub
you will have this:
Private Sub IwodXMPPNotify_Connected(ByVal Owner As wodXMPPComLib.IwodXMPPCom)
End Sub
End Sub
pretty much the same - except notification method has one more argument - Owner, which holds reference to wodXMPPCom instance that called this method.
In VB, to implement IwodXMPPNotify interface, you need code like this: - at the top of the code, in
Dim XMPP1 As wodXMPPCom
Implements IwodXMPPNotify
- in Form_Load (or where you initialize new instance of wodXMPP) do this:
Set XMPP1 = New wodXMPPCom
Set XMPP1.Notification = Me
XMPP1.Login = "joe@usa.net"
XMPP1.Connect
...
You can notice that when we declared XMPP1, we did not use WithEvents keyword - it is not needed anymore, because events will not be fired anymore. Notification methods we implement will be called instead!