public static interface
YouTubePlayer.Provider
YouTubePlayer.Provider
com.google.android.youtube.player.YouTubePlayer.Provider |
Known Indirect Subclasses
YouTubePlayerFragment | A fragment that contains a YouTubePlayerView . |
YouTubePlayerSupportFragment | The support fragment version of YouTubePlayerFragment . |
YouTubePlayerView | A view for displaying YouTube videos. |
Overview
A class that implements this interface can provide a YouTubePlayer
instance.
Summary
Public methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize a
YouTubePlayer , which can be used to play videos and control video
playback. |
Public methods
public abstract void initialize (String developerKey, YouTubePlayer.OnInitializedListener listener)
Initialize a YouTubePlayer
, which can be used to play videos and control video
playback. One of the callbacks in listener
will be invoked when the initialization
succeeds or fails.
Parameters
developerKey | A valid API key that is enabled to use the YouTube Data API v3 service. To generate a new key, visit the Google Developers Console. |
listener | The callbacks that will be invoked when the initialization succeeds or fails. |