public class Camera2Enumerator extends java.lang.Object implements CameraEnumerator
Constructor and Description |
---|
Camera2Enumerator(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
CameraVideoCapturer |
createCapturer(java.lang.String deviceName,
CameraVideoCapturer.CameraEventsHandler eventsHandler) |
java.lang.String[] |
getDeviceNames() |
java.util.List<CameraEnumerationAndroid.CaptureFormat> |
getSupportedFormats(java.lang.String deviceName) |
boolean |
isBackFacing(java.lang.String deviceName) |
boolean |
isFrontFacing(java.lang.String deviceName) |
static boolean |
isSupported(android.content.Context context)
Checks if API is supported and all cameras have better than legacy support.
|
public java.lang.String[] getDeviceNames()
getDeviceNames
in interface CameraEnumerator
public boolean isFrontFacing(java.lang.String deviceName)
isFrontFacing
in interface CameraEnumerator
public boolean isBackFacing(java.lang.String deviceName)
isBackFacing
in interface CameraEnumerator
@Nullable public java.util.List<CameraEnumerationAndroid.CaptureFormat> getSupportedFormats(java.lang.String deviceName)
getSupportedFormats
in interface CameraEnumerator
public CameraVideoCapturer createCapturer(java.lang.String deviceName, CameraVideoCapturer.CameraEventsHandler eventsHandler)
createCapturer
in interface CameraEnumerator
public static boolean isSupported(android.content.Context context)
6.4.1