java.lang.Object | |
↳ | com.google.android.gms.ads.VideoController |
An object that provides playback control for video ads.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VideoController.VideoLifecycleCallbacks | An interface for objects that receive callbacks for video events. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the aspect ratio of the video.
| |||||||||||
Returns the previously provided
VideoController.VideoLifecycleCallbacks or null if no instance was
provided. | |||||||||||
Returns true if the current ad has video content.
| |||||||||||
Set a listener that will receive callbacks for video events.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns the aspect ratio of the video. Returns 0 if aspect ratio information is not available.
Returns | |
---|---|
float |
Returns the previously provided VideoController.VideoLifecycleCallbacks
or null if no instance was
provided.
Returns | |
---|---|
VideoController.VideoLifecycleCallbacks |
Returns true if the current ad has video content.
Returns | |
---|---|
boolean |
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 |