public final class CaptureState extends Object
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 |
isPaused()
|
String |
toString()
|
Inherited Method Summary
Public Methods
public int getCaptureMode ()
Returns
- The capture mode of the current capture. One of
VideoConfiguration.CAPTURE_MODE_FILE
,VideoConfiguration.CAPTURE_MODE_STREAM
, orVideoConfiguration.CAPTURE_MODE_STREAM
when not capturing.
public int getCaptureQuality ()
Returns
- The quality level of the current capture. One of
VideoConfiguration.QUALITY_LEVEL_FULLHD
,VideoConfiguration.QUALITY_LEVEL_XHD
,VideoConfiguration.QUALITY_LEVEL_HD
,VideoConfiguration.QUALITY_LEVEL_SD
, orVideoConfiguration.QUALITY_LEVEL_UNKNOWN
when not capturing.
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
ifisCapturing()
iffalse
.