export interface TBLClassicListener { /** * Intercept user clicks on an item. * @param placementName - The name of the placement clicked. * @param itemId - The id of the item clicked. * @param clickUrl - The click url of the item. * @param isOrganic - If the item is organic or not. An organic item will not be handled by the SDK. * @param customData - Extra data passed from Taboola servers. This data is not guaranteed to be non-null from Web-mobile. */ onItemClick( placementName: string, itemId: string, clickUrl: string, isOrganic: boolean, customData?: string | null // Optional customData ): void; /** * Internal scrolling inside a Taboola WebView has reached its top. */ onTaboolaWidgetOnTop(): void; /** * Taboola widget received an ad. */ onAdReceiveSuccess(): void; /** * Taboola widget failed receiving an ad. * @param error The error message. */ onAdReceiveFail(error: string): void; /** * Taboola widget re-sized its own height to match the content allowing your layout reorganization if needed. * * @param height - The height, in pixels, of the placement rendered. */ onResize(height: number): void; /** * Taboola has finished updating its content. * NOTE: This event will only be called after requesting to update the content of the widget. */ onUpdateContentCompleted(): void; /****************************** * "Free-field" event system. * ******************************/ /** * Callbacks. Please consult Taboola to understand which events are returned here. * @param actionType - The event type. * @param data - The event data. */ onEvent(actionType: number, data: string): void; }