public static interface

YouTubePlayer.Provider

com.google.android.youtube.player.YouTubePlayer.Provider
Known Indirect Subclasses

Class Overview

A class that 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 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.