Offline capture sessions allow clients to select a set of camera registered surfaces that
support offline mode. After a successful offline mode switch all non-repeating pending requests
on those surfaces will continue to be processed by the camera stack even if clients close the
corresponding camera device.
Offline capture session instances will replace the previously active capture session arguments
in all capture callbacks after CameraCaptureSession.switchToOffline completes.
Processing of pending offline capture requests will begin only after the offline session
moves to ready state which will be indicated by the CameraOfflineSessionCallback.onReady
callback.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Immediately after this call, besides the final
CameraOfflineSessionCallback.onClosed notification, no further callbacks from the
offline session will be triggered and all remaining offline capture requests will be
discarded.
Closing a session is idempotent; closing more than once has no effect.
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 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]