YouTube

YouTubePlayer.Provider

public static interface
YouTubePlayer.Provider
com.google.android.youtube.player.YouTubePlayer.Provider

Known Indirect Subclasses

YouTubePlayerFragment A fragment which contains a YouTubePlayerView
YouTubePlayerSupportFragment The support fragment version of YouTubePlayerFragment
YouTubePlayerView A view for displaying YouTube videos. 

Overview

A class which implements this interface can provide a YouTubePlayer instance.

Summary

Public methods
abstract void initialize(String developerKey, YouTubePlayer.OnInitializedListener listener)
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 which is enabled to use the YouTube Data API v3 service. To generate a new key, visit the Google APIs Console.
listener The callbacks that will be invoked when the initialization succeeds or fails.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.