Following the deprecation of the Google Sign-In API, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish titles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the games v2 SDK instead.
While existing titles with the previous games v1 integrations continue to function for a couple of years, you are encouraged to migrate to v2 starting June 2025.
CaptureState
Stay organized with collections
Save and categorize content based on your preferences.
Data class used to return the capture state to the client. It will unparcel the data out
of a bundle that was sent across the binder.
Public Method Summary
int |
|
int |
|
boolean |
|
boolean |
|
boolean |
|
String
|
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public int getCaptureMode ()
public int getCaptureQuality ()
public boolean isCapturing ()
Returns
- Whether the service is currently capturing or not.
public boolean isOverlayVisible ()
Returns
- Whether the capture overlay is currently visible or not. This also indicates the
capture overlay is being used by the user and background capture will fail.
public boolean isPaused ()
Returns
- Whether the capture is currently paused or not. Will always be
false
if
isCapturing()
if false
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-24 UTC."],[[["`CaptureState` is a data class providing information about the current video capture state."],["It reveals the capture mode (file, stream), quality (FullHD, XHD, HD, SD), and whether the capture is active, paused, or has a visible overlay."],["It can be used to determine if the service is actively recording, if the capture is paused, and if the capture overlay is visible."],["This class helps developers understand the status of video capture initiated through the Google Games video recording service."]]],["The `CaptureState` class provides data about the current capture state. Key actions include retrieving the capture mode (file, stream, or none), capture quality (fullHD, xHD, HD, SD, or unknown), and determining if the service is capturing, if the overlay is visible, and if the capture is paused. It also has the capability to unparcel data from a bundle, and the inherited method to obtain a string representation of the object.\n"]]