Class POBBannerEvent
-
- All Implemented Interfaces:
public abstract class POBBannerEvent extends POBBaseEventThe banner custom event abstract class. Your banner custom event handler must implement this class to communicate with ad server SDK.
-
-
Constructor Summary
Constructors Constructor Description POBBannerEvent()
-
Method Summary
Modifier and Type Method Description abstract voidsetEventListener(@NonNull() POBBannerEventListener listener)OpenWrap SDK calls this method to set POBBannerEventListener, so OpenWrap custom event handler can inform the OpenWrap SDK about the events related to the ad server communication. POBBannerRenderinggetRenderer(@Nullable() String partnerName)OpenWrap SDK calls this method to get the implementation of POBBannerRendering interface to render ad in custom rendering component. POBAdSizegetAdSize()OpenWrap SDK calls this method to get the size of the ad rendered by the ad server SDK Array<POBAdSize>requestedAdSizes()OpenWrap SDK calls this method to get the size for which ad request should be made. POBBaseAdInteractionListenergetAdInteractionListener()Returns the instance of the Inline Ad interaction listener. ViewgetAdServerView()To retrieve ad server ad view -
-
Method Detail
-
setEventListener
abstract void setEventListener(@NonNull() POBBannerEventListener listener)
OpenWrap SDK calls this method to set POBBannerEventListener, so OpenWrap custom event handler can inform the OpenWrap SDK about the events related to the ad server communication.
Save the `listener` to use it in later phases of ad server events execution
- Parameters:
listener- object conforming to POBBannerEventListener
-
getRenderer
@Nullable() POBBannerRendering getRenderer(@Nullable() String partnerName)
OpenWrap SDK calls this method to get the implementation of POBBannerRendering interface to render ad in custom rendering component. If not implemented, the OpenWrap SDK internally creates its own renderer, capable of handling simple HTML and MRAID creative.
- Parameters:
partnerName- name of the partner associated with the winning bid- Returns:
renderer object conforming to `POBBannerRendering` interface
-
getAdSize
@Nullable() POBAdSize getAdSize()
OpenWrap SDK calls this method to get the size of the ad rendered by the ad server SDK
- Returns:
Ad size of the rendered creative
-
requestedAdSizes
@Nullable() Array<POBAdSize> requestedAdSizes()
OpenWrap SDK calls this method to get the size for which ad request should be made.
- Returns:
Array of POBAdSize
-
getAdInteractionListener
@Nullable() POBBaseAdInteractionListener getAdInteractionListener()
Returns the instance of the Inline Ad interaction listener. Implementation of this method is required for the Handler class integrated using mediation waterfall like MoPub event handlers for Banner.
- Returns:
instance of the Inline Ad interaction listener
-
getAdServerView
@Nullable() View getAdServerView()
To retrieve ad server ad view
- Returns:
ad server ad view
-
-
-
-