AdVideoView

class AdVideoView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout, AdVideoModelInterface.Listener, SurfaceHolder.Callback, TextureView.SurfaceTextureListener

Constructors

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

Types

Link copied to clipboard
interface Listener
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Call this method when you manually trigger the clickThrough url (e.g when you present a custom button to the user that needs to do the clickThrough). This way you inform AdswizzSDK that the associated clickTrackings should also be fired for third party measurement and reporting. Note that you may want to implement fun shouldOverrideVideoClickThrough(adVideoView: AdVideoView): Boolean and return true to let AdswizzSDK know that you're responsible for handling the clickThrough.

Link copied to clipboard
Link copied to clipboard
open override fun onAppStateChanged(vid: Int, isInForeground: Boolean)
Link copied to clipboard
open override fun onCleanupFinished(vid: Int)
Link copied to clipboard
open override fun onInitializationFinished(vid: Int)
Link copied to clipboard
open override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean
Link copied to clipboard
open override fun onSurfaceTextureAvailable(surfaceTexture: SurfaceTexture, width: Int, height: Int)
Link copied to clipboard
open override fun onSurfaceTextureDestroyed(surfaceTexture: SurfaceTexture): Boolean
Link copied to clipboard
open override fun onSurfaceTextureSizeChanged(surfaceTexture: SurfaceTexture, width: Int, height: Int)
Link copied to clipboard
open override fun onSurfaceTextureUpdated(surfaceTexture: SurfaceTexture)
Link copied to clipboard
open override fun onVideoBufferingEnd(vid: Int)
Link copied to clipboard
open override fun onVideoBufferingStart(vid: Int)
Link copied to clipboard
open override fun onVideoClickThroughChanged(vid: Int, videoClickThrough: String?)
Link copied to clipboard
open override fun onVideoEnded(vid: Int)
Link copied to clipboard
open override fun onVideoPlayStateChanged(vid: Int, playState: AdVideoPlayState)
Link copied to clipboard
open override fun onVideoSizeChanged(vid: Int, width: Int, height: Int)
Link copied to clipboard
open override fun onVideoStarted(vid: Int)
Link copied to clipboard
fun reconnect()
Link copied to clipboard

Registers a view that overlays or obstructs this video view as "friendly" for viewability measurement purposes.

Link copied to clipboard
Link copied to clipboard
fun setVideoViewId(newVideoViewId: Int)
Link copied to clipboard
open override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int)
Link copied to clipboard
open override fun surfaceCreated(holder: SurfaceHolder)
Link copied to clipboard
open override fun surfaceDestroyed(holder: SurfaceHolder)
Link copied to clipboard

Unregisters all previously registered friendly obstructions.

Link copied to clipboard

Unregisters a view previously registered as "friendly" for viewability measurement purposes.