AdCompanionView

class AdCompanionView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, renderType: AdCompanionView.RenderType? = null) : FrameLayout, AdCompanionModelInterface.Listener

AdCompanionView class used to show a companion banner.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, renderType: AdCompanionView.RenderType? = null)

Types

Link copied to clipboard
interface Listener
Link copied to clipboard

RenderType enum used in the AdCompanionView's constructor in order to set the rendering engine of the loaded resource:
WebView (default)
ImageView

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun clearCompanionContent()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onAfrError(error: Error)
Link copied to clipboard
open override fun onCheckVisibility()
Link copied to clipboard
open override fun onInitializationFinished(companionId: Int)
Link copied to clipboard
open override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean
Link copied to clipboard
open override fun onUpdate(companionId: Int, companionResource: String?, companionResourceType: CompanionResourceType?, companionClickThrough: String?, companionWidth: Int?, companionHeight: Int?)
Link copied to clipboard
fun reconnect()