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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 beSUCCESS
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.