YouTube

YouTubeApiServiceUtil

public final class
YouTubeApiServiceUtil
extends Object
java.lang.Object
   ↳ com.google.android.youtube.player.YouTubeApiServiceUtil

Overview

Utility class for verifying that the YouTube Player API service is available and up-to-date on this device. The same checks are performed if one creates and initializes a YouTubePlayerView, a YouTubeStandalonePlayer or any other YouTube Player API component.

Summary

Public methods
static YouTubeInitializationResult isYouTubeApiServiceAvailable(Context context)
Verifies that YouTube API service is installed and enabled on this device, and that the version installed on this device is no older than the one required by this client.
Inherited methods
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait()
final void wait(long arg0, int arg1)
final void wait(long arg0)

Public methods

public static YouTubeInitializationResult isYouTubeApiServiceAvailable (Context context)

Verifies that YouTube API service is installed and enabled on this device, and that the version installed on this device is no older than the one required by this client.

Returns
  • A YouTubeInitializationResult, which will be SUCCESS if the service is available, or will otherwise provide the reason for the service not being available and, if possible, an error dialog to enable user-initiated resolution of the error.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.