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
IncomingMessage callback method
Called when new message is received.
Syntax
- Basic
object.IncomingMessage (Owner, Contact, ChatRoom, Message)
The IncomingMessage(object,Owner,Contact,ChatRoom,Message) syntax has these parts:
The IncomingMessage(object,Owner,Contact,ChatRoom,Message) syntax has these parts:
object | An expression evaluating to an object of type IwodXMPPNotify |
Owner | An expression evaluating to an object of type wodXMPP |
Contact | XMPPContact object |
ChatRoom | XMPPChatRoom object |
Message | XMPPMessage object |
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 a new message is received. The notification method will provide you with Contact and Message parameters. This is where you can decide what to with the message.
You can determine whether the message that arrived originated from Server or some other user (using Contact parameter).
Contact parameter will return reference to the current XMPPContact object.
ChatRoom parameter is set to Nothing if this is direct message from the contact. If ChatRoom is set, it contains reference to the chat room from where is message coming.
Message provides you with reference to current XMPPMessage object which was received. Note that XMPPMessage object does not contain information about sender of the message - that is why XMPPContact object is provided with this notification method too.
When new message arrives, typically you can show it like this:
MsgBox Msg.Text, vbOKOnly, Msg.Subject