VideoCapabilities

public final class VideoCapabilities extends Object
implements Parcelable

Contains information on what capabilities the current device has for video recording.

Inherited Constant Summary

Field Summary

public static final Creator<VideoCapabilities> CREATOR

Public Method Summary

boolean
boolean[]
getSupportedCaptureModes()
Returns a collection of all supported capture modes.
boolean[]
getSupportedQualityLevels()
Returns a collection of all supported capture qualities.
int
boolean
isCameraSupported()
Returns whether the device has a front-facing camera and we can use it.
boolean
isFullySupported(int captureMode, int qualityLevel)
Checks if the capture mode and quality level are support, and camera, mic, and storage write.
boolean
isMicSupported()
Returns whether the device has a microphone and we can use it.
boolean
isWriteStorageSupported()
Returns whether the device has an external storage device and we can use it.
boolean
supportsCaptureMode(int captureMode)
Returns whether the device supports the given capture mode.
boolean
supportsQualityLevel(int qualityLevel)
Returns whether the device supports the given quality level.
String
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Fields

public static final Creator<VideoCapabilities> CREATOR

Public Methods

public boolean equals (Object obj)

public boolean[] getSupportedCaptureModes ()

Returns a collection of all supported capture modes.

public boolean[] getSupportedQualityLevels ()

Returns a collection of all supported capture qualities.

public int hashCode ()

public boolean isCameraSupported ()

Returns whether the device has a front-facing camera and we can use it.

public boolean isFullySupported (int captureMode, int qualityLevel)

Checks if the capture mode and quality level are support, and camera, mic, and storage write.

public boolean isMicSupported ()

Returns whether the device has a microphone and we can use it.

public boolean isWriteStorageSupported ()

Returns whether the device has an external storage device and we can use it.

public boolean supportsCaptureMode (int captureMode)

Returns whether the device supports the given capture mode.

public boolean supportsQualityLevel (int qualityLevel)

Returns whether the device supports the given quality level.

public String toString ()

public void writeToParcel (Parcel out, int flags)