Stay organized with collections
Save and categorize content based on your preferences.
ACameraCaptureSession_stateCallbacks
Capture session state callbacks used in ACameraDevice_createCaptureSession and ACameraDevice_createCaptureSessionWithSessionParameters.
Summary
Public attributes
|
context
|
void *
optional application context.
|
onActive
|
This callback is called when the session starts actively processing capture requests.
|
onClosed
|
This callback is called when the session is closed and deleted from memory.
|
onReady
|
This callback is called every time the session has no more capture requests to process.
|
Public attributes
context
Declared in camera/NdkCameraCaptureSession.h
void * ACameraCaptureSession_stateCallbacks::context
optional application context.
onActive
Declared in camera/NdkCameraCaptureSession.h
ACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onActive
This callback is called when the session starts actively processing capture requests.
If the session runs out of capture requests to process and calls onReady, then this callback will be invoked again once new requests are submitted for capture.
onClosed
Declared in camera/NdkCameraCaptureSession.h
ACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onClosed
This callback is called when the session is closed and deleted from memory.
A session is closed when ACameraCaptureSession_close is called, a new session is created by the parent camera device, or when the parent camera device is closed (either by the user closing the device, or due to a camera device disconnection or fatal error).
Once this callback is called, all access to this ACameraCaptureSession object will cause a crash.
onReady
Declared in camera/NdkCameraCaptureSession.h
ACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onReady
This callback is called every time the session has no more capture requests to process.
This callback will be invoked any time the session finishes processing all of its active capture requests, and no repeating request or burst is set up.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[null,null,["Last updated 2024-11-19 UTC."],[],[],null,["# ACameraCaptureSession_stateCallbacks Struct Reference\n\nACameraCaptureSession_stateCallbacks\n====================================\n\nCapture session state callbacks used in [ACameraDevice_createCaptureSession](/ndk/reference/group/camera#group___camera_1ga2d2cc252a4c3cb60ca0a85cb9d408191) and [ACameraDevice_createCaptureSessionWithSessionParameters](/ndk/reference/group/camera#group___camera_1ga622c05d72ab1fcee2c5d9de91e4f0730).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [context](#struct_a_camera_capture_session__state_callbacks_1a18b663984bf05166f64db16b3d953ad4) | `void *` optional application context. |\n| [onActive](#struct_a_camera_capture_session__state_callbacks_1a6f9eb7decdfd701243b59c5747af66f7) | [ACameraCaptureSession_stateCallback](/ndk/reference/group/camera#group___camera_1ga98d5538ab4c3b1603f954e992881fc07) This callback is called when the session starts actively processing capture requests. |\n| [onClosed](#struct_a_camera_capture_session__state_callbacks_1a07d611ad3ad26daf04328304a17f356d) | [ACameraCaptureSession_stateCallback](/ndk/reference/group/camera#group___camera_1ga98d5538ab4c3b1603f954e992881fc07) This callback is called when the session is closed and deleted from memory. |\n| [onReady](#struct_a_camera_capture_session__state_callbacks_1a3d3f86c319a3334c4ba3d51a36a869c2) | [ACameraCaptureSession_stateCallback](/ndk/reference/group/camera#group___camera_1ga98d5538ab4c3b1603f954e992881fc07) This callback is called every time the session has no more capture requests to process. |\n\nPublic attributes\n-----------------\n\n### context\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```scdoc\nvoid * ACameraCaptureSession_stateCallbacks::context\n``` \noptional application context. \n\n### onActive\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```scdoc\nACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onActive\n``` \nThis callback is called when the session starts actively processing capture requests.\n\nIf the session runs out of capture requests to process and calls [onReady](/ndk/reference/struct/a-camera-capture-session-state-callbacks#struct_a_camera_capture_session__state_callbacks_1a3d3f86c319a3334c4ba3d51a36a869c2), then this callback will be invoked again once new requests are submitted for capture. \n\n### onClosed\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```scdoc\nACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onClosed\n``` \nThis callback is called when the session is closed and deleted from memory.\n\nA session is closed when [ACameraCaptureSession_close](/ndk/reference/group/camera#group___camera_1ga6cb82494e36cb9506fee0ddc737e37dc) is called, a new session is created by the parent camera device, or when the parent camera device is closed (either by the user closing the device, or due to a camera device disconnection or fatal error).\n\nOnce this callback is called, all access to this ACameraCaptureSession object will cause a crash. \n\n### onReady\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```scdoc\nACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onReady\n``` \nThis callback is called every time the session has no more capture requests to process.\n\nThis callback will be invoked any time the session finishes processing all of its active capture requests, and no repeating request or burst is set up."]]