articleEventChannel
Note: This API was deprecated in version 4.0.0. Use knowledgeBase.eventChannel instead.
This channel holds events related to the article operations.
Event keys:
Property | Datatype | Description |
eventName | String | Name of the event. Events are listed below. |
articleID | String | Id of the article for which operation is performed |
Supported Events:
eventName | Invoked when |
articleOpened | The visitor opens an article |
articleClosed | The visitor closes an article |
articleLiked | The visitor likes an article |
articleDisLiked | The visitor dislikes an article |
Syntax
CopiedZohoSalesIQ.articleEventChannel.listen((event) {
// your code to handle events
});
Usage
CopiedZohoSalesIQ.articleEventChannel.listen((event) {
switch (event["eventName"]) {
case SIQEvent.articleOpened:
// your code to handle event
break;
case SIQEvent.articleClosed:
// your code to handle event
break;
case SIQEvent.articleLiked:
// your code to handle event
break;
case SIQEvent.articleDisliked:
// your code to handle event
break;
}
});