Class MediaView

com.yandex.mobile.ads.nativeads

java.lang.Object ⇽ android.view.View ⇽ android.view.ViewGroup ⇽ android.widget.FrameLayout ⇽ MediaView

public class MediaView extends android.widget.FrameLayout

All Implemented Interfaces:
android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.graphics.drawable.Drawable.Callback, android.view.ViewManager, android.view.ViewParent

Class for displaying media content such as images or videos.

Constructors

MediaView(final android.content.Context context)

Creates an object of the MediaView class.

MediaView(final android.content.Context context, final android.util.AttributeSet attrs)

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

MediaView(final android.content.Context context, final android.util.AttributeSet attrs, final int defStyleAttr)
MediaView(final android.content.Context context, final android.util.AttributeSet attrs, final int defStyleAttr, final int defStyleRes)

Constructor Detail

MediaView

public MediaView (final android.content.Context context)

Creates an object of the MediaView class.

Parameters:
context

An object of the Context system class.

MediaView

public MediaView (final android.content.Context context, final android.util.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 android.content.Context context, final android.util.AttributeSet attrs, final int defStyleAttr)

Parameters:
context

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

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. The default values are described in the resource.

MediaView

public MediaView (final android.content.Context context, final android.util.AttributeSet attrs, final int defStyleAttr, final int defStyleRes)