Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion src/@awesome-cordova-plugins/plugins/clevertap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
* @param {boolean} allowSystemEvents - Set to `true` to allow system-level event tracking.
*/
@Cordova()
setOptOut(optOut: boolean, allowSystemEvents?: boolean): Promise<any> {
setOptOut(userOptOut: boolean, allowSystemEvents?: boolean): Promise<any> {
return;
}

Expand Down Expand Up @@ -724,6 +724,20 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
return;
}

/**
* Dismisses the currently visible Picture-in-Picture (PIP) InApp notification.
* No-op when no PIP InApp is visible; other InApp types are never affected.
* Note: dismissing frees the InApp display slot, so the next queued InApp may show immediately.
* To keep a screen free of all InApps, pair this with 'suspendInAppNotifications' on screen entry
* and 'resumeInAppNotifications' on exit.
*
* @returns {Promise<any>}
*/
@Cordova()
dismissPipInApp(): Promise<any> {
return;
}

/**
* Deletes all images and gifs which are preloaded for inapps in cs mode.
*
Expand Down Expand Up @@ -975,6 +989,18 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
return;
}

/**
* Requests an on-demand refresh of the App Inbox from the CleverTap servers.
* Throttled to one call every 5 minutes; the throttle is shared with the built-in pull-to-refresh gesture.
* Resolves with true if messages were fetched, false if the fetch was throttled, disabled for the session or failed.
*
* @returns {Promise<any>}
*/
@Cordova()
fetchInbox(): Promise<any> {
return;
}

/**
* Call this to Get All Display Units
*
Expand Down Expand Up @@ -1018,6 +1044,18 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
return;
}

/**
* Call this to Push a DisplayUnit Element Clicked Event for ID
*
* @param unitId {string} - the Display Unit ID
* @param additionalProperties {any} - properties to merge into the event, e.g. the 'wzrk_element_id' taken from the clicked action's metadata
* @returns {Promise<any>}
*/
@Cordova()
pushDisplayUnitElementClickedEventForID(unitId: string, additionalProperties: any): Promise<any> {
return;
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Get Feature Flag for key
Expand Down