Injector banner callback
A callback to handle events from banner campaigns.
It is not always suitable for you to cover the screen every time a banner is received. You can implement optional methods to control this.
Declared in
com.synerise.sdk.injector.callback.IBannerListener
Banner loaded
The following method is called after a banner is loaded and the Synerise SDK asks for permission to show it.
- boolean shouldPresent(TemplateBanner banner);
Parameter | Type | Description |
---|---|---|
banner |
TemplateBanner |
Banner’s necessary data for building process |
Call {@link com.synerise.sdk.injector.Injector#showBanner(TemplateBanner, boolean)} to create banner with provided data.
Banner displayed
The following method is called after a banner appears.
- void onPresented();
Banner closed
The following method is called when a banner disappears.
- void onClosed();