Class MediaView

com.yandex.mobile.ads.nativeads

java.lang.Object ⇽ MediaView

public class MediaView

Class for displaying media content such as images or videos.

Constructors

MediaView(final Context context)

Creates an object of the MediaView class.

MediaView(final Context context, final AttributeSet attrs)

Creates an object of the MediaView class from an XML file.

MediaView(final Context context, final AttributeSet attrs, final int defStyleAttr)

Creates an object of the MediaView class from an XML file.

MediaView(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes)

Constructor Detail

MediaView

public MediaView (final Context context)

Creates an object of the MediaView class.

Parameters:
context

An object of the Context system class.

MediaView

public MediaView (final Context context, final AttributeSet attrs)

Creates an object of the MediaView class from an XML file.

Parameters:
context

An object of the Context system class.

attrs

Attributes that are defined when creating the MediaView object via a representation in an XML file.

MediaView

public MediaView (final Context context, final AttributeSet attrs, final int defStyleAttr)

Creates an object of the MediaView class from an XML file.

Parameters:
context

An object of the Context system class.

attrs

Attributes that are defined when creating the MediaView object via a representation in an XML file.

defStyleAttr

An attribute that contains a reference to a style resource for view. The default values are described in the resource.

MediaView

public MediaView (final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes)