java.lang.Object | ||
↳ | com.google.android.gms.common.api.GoogleApi<com.google.android.gms.games.Games.GamesOptions> | |
↳ | com.google.android.gms.games.VideosClient |
A client to interact with videos.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VideosClient.OnCaptureOverlayStateListener | Listener that will notify about key user interactions with the overlay, such as starting/stopping capture or dismissing the overlay. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CAPTURE_OVERLAY_STATE_CAPTURE_STARTED | State used to indicate that the user has initiated capture via the capture overlay. | |||||||||
int | CAPTURE_OVERLAY_STATE_CAPTURE_STOPPED | State used to indicate that the user has stopped capturing via the capture overlay. | |||||||||
int | CAPTURE_OVERLAY_STATE_DISMISSED | State used to indicate that the user has dismissed the capture overlay and it is no longer visible. | |||||||||
int | CAPTURE_OVERLAY_STATE_SHOWN | State used to indicate that the capture overlay is drawn on the screen and visible to the user. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a
Task which asynchronously fetches the VideoCapabilities of the
service, whether the mic or front-facing camera are supported, if the service can write to
external storage, and what capture modes and quality levels are available. | |||||||||||
Returns a
Task which asynchronously fetches the current CaptureState of the
capture service. | |||||||||||
Returns a
Task which asynchronously fetches whether the capture service is already in
use. | |||||||||||
Returns a
Task which asynchronously checks whether the device supports capture. | |||||||||||
Returns a
Task which asynchronously registers a VideosClient.OnCaptureOverlayStateListener
to listen for changes to the overlay state launched by getCaptureOverlayIntent() . | |||||||||||
Returns a
Task which asynchronously unregisters this client's overlay state update
listener, if any, and loads the result. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
State used to indicate that the user has initiated capture via the capture overlay.
State used to indicate that the user has stopped capturing via the capture overlay.
State used to indicate that the user has dismissed the capture overlay and it is no longer visible.
State used to indicate that the capture overlay is drawn on the screen and visible to the user.
Returns a Task
which asynchronously fetches the VideoCapabilities
of the
service, whether the mic or front-facing camera are supported, if the service can write to
external storage, and what capture modes and quality levels are available.
Required Scopes: SCOPE_GAMES_LITE
Returns | |
---|---|
Task<VideoCapabilities> |
Returns a Task
which asynchronously loads an Intent
to launch the capture
overlay. This will automatically handle any necessary resolution intents.
The returned Task
can fail with a RemoteException
.
Required Scopes: SCOPE_GAMES_LITE
Returns | |
---|---|
Task<Intent> |
Returns a Task
which asynchronously fetches the current CaptureState
of the
capture service. This will inform about whether the capture overlay is visible, if the overlay
is actively being used to capture, and a much more. See CaptureState
for more details.
Required Scopes: SCOPE_GAMES_LITE
Returns | |
---|---|
Task<CaptureState> |
Returns a Task
which asynchronously fetches whether the capture service is already in
use. Use this call to check if a start capture API call will return VIDEO_ALREADY_CAPTURING
. If the Task
result is true
,
then it's safe to start capturing. If it's already in use then the result is false
.
Do not use this call to check if capture is supported, instead use isCaptureSupported()
or getCaptureCapabilities()
.
Required Scopes: SCOPE_GAMES_LITE
Parameters | |
---|---|
captureMode |
int : The mode to check availability of. Valid choices are CAPTURE_MODE_FILE and CAPTURE_MODE_STREAM .
|
Returns | |
---|---|
Task<Boolean> |
Returns a Task
which asynchronously checks whether the device supports capture. If the
Task
result is true
then capture is supported.
Required Scopes: SCOPE_GAMES_LITE
Returns | |
---|---|
Task<Boolean> |
Returns a Task
which asynchronously registers a VideosClient.OnCaptureOverlayStateListener
to listen for changes to the overlay state launched by getCaptureOverlayIntent()
.
Note that only one overlay state listener may be active at a time. Calling this method while another overlay state listener was previously registered will replace the original listener with the new one.
Required Scopes: SCOPE_GAMES_LITE
Parameters | |
---|---|
listener |
VideosClient.OnCaptureOverlayStateListener : The listener that is called when the overlay state changes.
|
Returns | |
---|---|
Task<Void> |
Returns a Task
which asynchronously unregisters this client's overlay state update
listener, if any, and loads the result. The result will be true
if the callback was
unregistered and false
if this callback wasn't registered previously or is already
unregistered.
Required Scopes: SCOPE_GAMES_LITE
Parameters | |
---|---|
listener |
VideosClient.OnCaptureOverlayStateListener |
Returns | |
---|---|
Task<Boolean> |