SASNativeAdMediaView

Native UI component to play the media element of a SASNativeAdElement

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
Creates a SASNativeAdMediaView instance
constructor(@NonNull context: Context, @Nullable attributeSet: AttributeSet)
Constructor for creation in the XML layout file

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Returns whether this view forces its height or width to respect the media ratio
Link copied to clipboard
open fun onDestroy()
This method must be called when the activity (that this view is attached to) is destroyed (typically in the onDestroy() method of the activity).
Link copied to clipboard
open fun reset()
Resets this SASNativeAdMediaView to get it ready display a new SASNativeAdElement media
Link copied to clipboard
Link copied to clipboard
open fun setEnforceAspectRatio(enforceAspectRatio: Boolean)
Sets whether this view forces its height or width to respect the media ratio