The YouTube Android Player API is an experimental API version, which means it is still in development, though we do not expect major interface changes. Until the experimental label is removed, the Deprecation Policy for YouTube APIs won't apply to this version as discussed in the API Terms of Service.
public final class
YouTubeApiServiceUtil
extends Object
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.