public interface CameraCaptureSessionCore
Modifier and Type | Method and Description |
---|---|
CameraDeviceImpl.StateCallbackKK |
getDeviceStateCallback()
Create an internal state callback, to be invoked on the mDeviceHandler
It has a few behaviors:
Convert device state changes into session state changes.
|
boolean |
isAborting()
Whether currently in mid-abort.
|
void |
replaceSessionClose()
Replace this session with another session.
|
void replaceSessionClose()
This is an optimization to avoid unconfiguring and then immediately having to reconfigure again.
The semantics are identical to #close
, except that unconfiguring will be skipped.
After this call completes, the session will not call any further methods on the camera device.
CameraCaptureSession#close
CameraDeviceImpl.StateCallbackKK getDeviceStateCallback()
It has a few behaviors:
boolean isAborting()
This is used by the implementation to set the capture failure reason, in lieu of more accurate error codes from the camera service. Unsynchronized to avoid deadlocks between simultaneous session->device, device->session calls.