public final class

VideoCapabilities

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.games.video.VideoCapabilities

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<VideoCapabilities> CREATOR
Public Methods
boolean equals(Object obj)
boolean[] getSupportedCaptureModes()
Returns a collection of all supported capture modes.
boolean[] getSupportedQualityLevels()
Returns a collection of all supported capture qualities.
int hashCode()
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 toString()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<VideoCapabilities> CREATOR

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public boolean[] getSupportedCaptureModes ()

Returns a collection of all supported capture modes.

Returns
boolean[]

public boolean[] getSupportedQualityLevels ()

Returns a collection of all supported capture qualities.

Returns
boolean[]

public int hashCode ()

Returns
int

public boolean isCameraSupported ()

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

Returns
boolean

public boolean isFullySupported (int captureMode, int qualityLevel)

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

Parameters
captureMode int: One of these values: CAPTURE_MODE_FILE or CAPTURE_MODE_STREAM.
qualityLevel int: One of these values: QUALITY_LEVEL_SD, QUALITY_LEVEL_HD, QUALITY_LEVEL_FULLHD, or QUALITY_LEVEL_XHD.
Returns
boolean

public boolean isMicSupported ()

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

Returns
boolean

public boolean isWriteStorageSupported ()

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

Returns
boolean

public boolean supportsCaptureMode (int captureMode)

Returns whether the device supports the given capture mode.

Parameters
captureMode int: One of these values: CAPTURE_MODE_FILE or CAPTURE_MODE_STREAM.
Returns
boolean

public boolean supportsQualityLevel (int qualityLevel)

Returns whether the device supports the given quality level.

Parameters
qualityLevel int: One of these values: QUALITY_LEVEL_SD, QUALITY_LEVEL_HD, QUALITY_LEVEL_FULLHD, or QUALITY_LEVEL_XHD.
Returns
boolean

public String toString ()

Returns
String

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel
flags int