articleEventChannel

This channel holds events related to the article operations.

Event keys:

PropertyDatatypeDescription
eventNameStringName of the event. Events are listed below.
articleIDStringId of the article for which operation is performed

Supported Events:

eventNameInvoked when
articleOpenedThe visitor opens an article
articleClosedThe visitor closes an article
articleLikedThe visitor likes an article
articleDisLikedThe 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;
    }
});