public final class

VideoController

extends Object
java.lang.Object
   ↳ com.google.android.gms.ads.VideoController

Class Overview

An object that provides playback control for video ads.

Summary

Nested Classes
class VideoController.VideoLifecycleCallbacks An interface for objects that receive callbacks for video events. 
Public Methods
float getAspectRatio()
Returns the aspect ratio of the video.
VideoController.VideoLifecycleCallbacks getVideoLifecycleCallbacks()
Returns the previously provided VideoController.VideoLifecycleCallbacks or null if no instance was provided.
boolean hasVideoContent()
Returns true if the current ad has video content.
void setVideoLifecycleCallbacks(VideoController.VideoLifecycleCallbacks callbacks)
Set a listener that will receive callbacks for video events.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public float getAspectRatio ()

Returns the aspect ratio of the video. Returns 0 if aspect ratio information is not available.

Returns
float

public VideoController.VideoLifecycleCallbacks getVideoLifecycleCallbacks ()

Returns the previously provided VideoController.VideoLifecycleCallbacks or null if no instance was provided.

Returns
VideoController.VideoLifecycleCallbacks

public boolean hasVideoContent ()

Returns true if the current ad has video content.

Returns
boolean

public void setVideoLifecycleCallbacks (VideoController.VideoLifecycleCallbacks callbacks)

Set a listener that will receive callbacks for video events.

Parameters
callbacks VideoController.VideoLifecycleCallbacks: the object that is to receive lifecyle callbacks
Throws
NullPointerException if callbacks is null