SASNativeVideoAdElement

This class represents a native video ad element

Constructors

Link copied to clipboard
constructor()
Default constructor
constructor(@NonNull nativeVideoJSON: JSONObject, timeout: Long, @Nullable remoteLoggerManager: SASRemoteLoggerManager)
Constructs a SASNativeVideoAdElement from the specified JSONObject

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
Link copied to clipboard
val REDIRECT_ON_FIRST_CLICK: String = "redirectOnFirstClick"
Link copied to clipboard
val SECURED_TRANSACTION_TOKEN: String = "securedTransactionToken"
Link copied to clipboard
open val selectedMediaFile: SCSVastMediaFile
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
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
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
Link copied to clipboard
val VAST_COMPANION_AS_BACKGROUND: String = "companionBackground"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val VIDEO_REWARD: String = "reward"
Link copied to clipboard
val VIDEO_REWARD_AMOUNT: String = "amount"
Link copied to clipboard
val VIDEO_REWARD_CURRENCY: String = "currency"

Functions

Link copied to clipboard
Returns the AdParameters string of the VAST Ad of this SASNativeVideoAdElement
Link copied to clipboard
open fun getAdVerifications(): ArrayList<SCSVastAdVerification>
Returns a list of ad verification scripts
Link copied to clipboard
open fun getAudioMode(): Int
Gets the audio mode policy when playing the video ad
Link copied to clipboard
Returns the companion click tracking url if available
Link copied to clipboard
Returns the companion click url if available
Link copied to clipboard
Gets the background color of the video layer
Link copied to clipboard
Gets the URL of the background image to use for the video.
Link copied to clipboard
Gets the resize policy for the background image
Link copied to clipboard
Returns the downscale factor when computing blurred background image for high end devices
Link copied to clipboard
Returns the downscale factor when computing blurred background image for low end devices
Link copied to clipboard
open fun getBlurRadius(): Int
Returns the blur radius parameter used for the dynamic background
Link copied to clipboard
Returns the custom text for call to action of this SASNativeVideoAdElement
Link copied to clipboard
Returns the type of the click URL, either a website, a video, or an application
Link copied to clipboard
Returns the background impression url if available
Link copied to clipboard
Overriden to add extra info
Link copied to clipboard
Returns the tracking URLs for a given event
Link copied to clipboard
Returns the post video html ad if any
Link copied to clipboard
open fun getMediaDuration(): Int
Returns the media duration.
Link copied to clipboard
open fun getMediaHeight(): Int
Returns the height of the current media, or -1 if not available
Link copied to clipboard
open fun getMediaWidth(): Int
Returns the width of the current media, or -1 if not available
Link copied to clipboard
Returns the time within the video where to extract a frame to use as a poster image.
Link copied to clipboard
Returns the URL of the poster image to use for the video.
Link copied to clipboard
Returns the String representing the time offset from the beginning of the video when the progress tracking URL must be fired.
Link copied to clipboard
Returns the reward for this native video if available
Link copied to clipboard
Link copied to clipboard
open fun getSkipPolicy(): Int
Returns the skip button policy
Link copied to clipboard
open fun getTintColor(): Int
Returns the Color of the tint layer
Link copied to clipboard
open fun getTintOpacity(): Int
Returns the opacity (between 0 and 100, 100 being fully opaque) of the tint layer
Link copied to clipboard
Returns the VASTLoadingTime, or -1 if no VAST downloaded.
Link copied to clipboard
debug string continaing info pertaining to this video
Link copied to clipboard
open fun getVideoTrackingEventList(videoDuration: Long): ArrayList<SCSTrackingEvent>
Create an ArrayList of SASVideoTrackingEvent (as SCSTrackingEvent) based on mEventTrackingURLMap.
Link copied to clipboard
Returns the URL of the video of this SASNativeVideoAdElement
Link copied to clipboard
Gets the video vertical position
Link copied to clipboard
Returns the URL of the VPAID Ad of this SASNativeVideoAdElement
Link copied to clipboard
open fun isAutoclose(): Boolean
Returns whether the ad should close when video ends
Link copied to clipboard
open fun isAutoplay(): Boolean
Returns whether the video should start playing as soon as it is ready to play.
Link copied to clipboard
Returns whether this video redirects on first click in Video-Read format
Link copied to clipboard
Returns whether the video should restart from the beginning when entering fullscreen for the first time.
Link copied to clipboard
Returns whether this video can enter into stick on top mode (i.e.
Link copied to clipboard
Returns whether the stick to top mode can be dismissed (when the video is in this mode)
Link copied to clipboard
Returns whether the video will plackback till its end no matter the viewability of the ad
Link copied to clipboard
Returns whether this video is in 360 wide format.
Link copied to clipboard
open fun setAudioMode(audioMode: Int)
Sets the audio mode policy when playing the video ad
Link copied to clipboard
open fun setAutoclose(autoclose: Boolean)
Sets whether the ad should close when video ends
Link copied to clipboard
open fun setAutoplay(autoplay: Boolean)
Sets whether the video should start playing as soon as it is ready to play.
Link copied to clipboard
open fun setBackgroundColor(color: Int)
Sets the background color of the video layer
Link copied to clipboard
open fun setBackgroundImageUrl(@Nullable backgroundImageUrl: String)
Sets the URL of the background image to use for the video.
Link copied to clipboard
open fun setBackgroundResizeMode(backgroundResizeMode: Int)
Sets the resize policy for the background image
Link copied to clipboard
open fun setBlurRadius(blurRadius: Int)
Sets the blur radius parameter used for the dynamic background
Link copied to clipboard
open fun setCallToActionCustomText(@Nullable callToActionCustomText: String)
Sets the custom text for call to action to use for the call to action button if action type is set to custom.
Link copied to clipboard
open fun setCallToActionType(callToActionType: Int)
Sets the type of the click URL, either a website, a video, an application or a custom type
Link copied to clipboard
open fun setClickUrl(@NonNull clickUrl: String)
Sets the click url for this SASAdElement instance According to the work flow, if any VAST Click URL has been found, it will be overriden.
Link copied to clipboard
open fun setEventTrackingURLs(eventName: String, eventTrackingURLs: Array<String>)
Sets the tracking URLs for a given event
Link copied to clipboard
open fun setHtmlLayerAdElement(@Nullable htmlLayerAdElement: SASAdElement)
Sets the post video html ad
Link copied to clipboard
open fun setMediaDuration(duration: Int)
Sets the media duration.
Link copied to clipboard
open fun setMediaHeight(height: Int)
Sets the height of the current media, or -1 if not available
Link copied to clipboard
open fun setMediaWidth(width: Int)
Sets the width of the current media, or -1 if not available
Link copied to clipboard
open fun setPosterImageOffsetPosition(@Nullable posterImageOffsetPosition: String)
Sets the time within the video where to extract a frame to use as a poster image.
Link copied to clipboard
open fun setPosterImageUrl(@Nullable posterImageUrl: String)
Sets the URL of the poster image to use for the video.
Link copied to clipboard
open fun setProgressOffset(@Nullable progressOffset: String)
Sets the String representing the time offset from the beginning of the video when the progress tracking URL must be fired.
Link copied to clipboard
Sets whether this video redirects on first click in Video-Read format
Link copied to clipboard
open fun setRestartWhenEnteringFullscreen(restartWhenEnteringFullscreen: Boolean)
Sets whether the video should restart from the beginning when entering fullscreen for the first time.
Link copied to clipboard
open fun setReward(@Nullable reward: SASReward)
Sets the reward for this native video
Link copied to clipboard
open fun setSkipPolicy(skipPolicy: Int)
Sets the skip button policy
Link copied to clipboard
open fun setStickToTopEnabled(enabled: Boolean)
Sets whether this video can enter into stick on top mode (i.e.
Link copied to clipboard
open fun setStickToTopSkippable(skippable: Boolean)
Sets whether the stick to top mode can be dismissed (when the video is in this mode)
Link copied to clipboard
open fun setTintColor(tintColor: Int)
Sets the Color of the tint layer
Link copied to clipboard
open fun setTintOpacity(tintOpacity: Int)
Sets the opacity (between 0 and 100, 100 being fully opaque) of the tint layer
Link copied to clipboard
open fun setUninterruptedPlayback(mUninterruptedPlayback: Boolean)
Sets whether the video will plackback till its end no matter the viewability of the ad.
Link copied to clipboard
open fun setVideo360Mode(isVideo360Mode: Boolean)
Sets whether this video is in 360 wide format.
Link copied to clipboard
open fun setVideoUrl(@Nullable videoUrl: String)
Sets the URL of the video of this SASNativeVideoAdElement
Link copied to clipboard
open fun setVideoVerticalPosition(videoPosition: Int)
Sets the video vertical position