@azerion/bluestack-sdk-react-native
Version:
BlueStack provides functionalities for monetizing your mobile application: from premium sales with rich media, video and innovative formats, it facilitates inserting native mobile ads as well all standard display formats. BlueStack SDK is a library that a
31 lines (30 loc) • 1.22 kB
TypeScript
import { EmitterSubscription } from 'react-native';
import type { BluestackPreference } from './Preference';
export declare const BluestackInterstitial: {
/**
* Load interstitial ad for a given placementId and shows it if autoDisplay is true
* @param placementId — The placement Id of the ad
* @param autoDisplay — Enable / Disable auto display
* @param bsPreference — Preferences for the ad to display
*/
loadAd(placementId: string, autoDisplay?: boolean, bsPreference?: BluestackPreference): any;
/**
* Display an loaded interstitial ad
*/
displayAd(): Promise<number>;
/**
* Add interstitial ad event listener
* @param listener — The listener function
* @returns a subscription object that can be used to remove the listener
*/
addEventListener(listener: (event: any) => void): EmitterSubscription;
/**
* Remove a specific interstitial ad Event Listener
* @param subscription — the subscription object returned by addEventListener
*/
removeEventListener(subscription: EmitterSubscription): void;
/**
* Remove all interstitial ad event listeners
*/
removeAllEventListeners(): void;
};