lib / tv.smartclip.smartclientandroid.lib / SxAdView / <init>

<init>

SxAdView(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

View that should be used for outstream use cases. It uses the ExoPlayer to display the requested advertisement tag (incl. it's opener, closer and/or bumper). onResume and onPause must be called in the corresponding android lifecycle callbacks. release must be called when this view is not needed anymore. To change the used SxConfiguration you can use all xml attributes defined in R.styleable.SxAdView or overwrite SxAdView and implement the configuration property.

Parameters

context - current Context

attrs - AttributeSet for this view

defStyleAttr - style attributes for this view