Skip to content

Most visited

Recently visited


ACameraCaptureSession_stateCallbacks Struct Reference

ACameraCaptureSession_stateCallbacks Struct Reference

#include <NdkCameraCaptureSession.h>

Data Fields

void * context
 optional application context. More...
ACameraCaptureSession_stateCallback onClosed
ACameraCaptureSession_stateCallback onReady
ACameraCaptureSession_stateCallback onActive

Field Documentation

◆ context

void* context

optional application context.

◆ 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

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

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.

The documentation for this struct was generated from the following file:
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)