共用方式為


CameraOfflineSession Class

Definition

A camera capture session that was switched to offline mode via successful call to CameraCaptureSession#switchToOffline.

[Android.Runtime.Register("android/hardware/camera2/CameraOfflineSession", ApiSince=30, DoNotGenerateAcw=true)]
public abstract class CameraOfflineSession : Android.Hardware.Camera2.CameraCaptureSession
[<Android.Runtime.Register("android/hardware/camera2/CameraOfflineSession", ApiSince=30, DoNotGenerateAcw=true)>]
type CameraOfflineSession = class
    inherit CameraCaptureSession
Inheritance
CameraOfflineSession
Attributes

Remarks

A camera capture session that was switched to offline mode via successful call to CameraCaptureSession#switchToOffline.

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.

In contrast to a regular CameraCaptureSession an offline capture session will not accept any further capture requests. Besides CameraOfflineSession#close all remaining methods will throw UnsupportedOperationException and are not supported.

Java documentation for android.hardware.camera2.CameraOfflineSession.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

CameraOfflineSession()
CameraOfflineSession(IntPtr, JniHandleOwnership)

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Device

Get the camera device that this session is created for.

(Inherited from CameraCaptureSession)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
InputSurface (Inherited from CameraCaptureSession)
IsReprocessable (Inherited from CameraCaptureSession)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass
ThresholdType

Methods

AbortCaptures()

Discard all captures currently pending and in-progress as fast as possible.

(Inherited from CameraCaptureSession)
Capture(CaptureRequest, CameraCaptureSession+CaptureCallback, Handler)

Submit a request for an image to be captured by the camera device.

(Inherited from CameraCaptureSession)
CaptureBurst(IList<CaptureRequest>, CameraCaptureSession+CaptureCallback, Handler)

Submit a list of requests to be captured in sequence as a burst.

(Inherited from CameraCaptureSession)
CaptureBurstRequests(IList<CaptureRequest>, IExecutor, CameraCaptureSession+CaptureCallback)

Submit a list of requests to be captured in sequence as a burst.

(Inherited from CameraCaptureSession)
CaptureSingleRequest(CaptureRequest, IExecutor, CameraCaptureSession+CaptureCallback)

Submit a request for an image to be captured by the camera device.

(Inherited from CameraCaptureSession)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close()

Close this capture session asynchronously.

(Inherited from CameraCaptureSession)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
FinalizeOutputConfigurations(IList<OutputConfiguration>)

Finalize the output configurations that now have their deferred and/or extra Surfaces included.

(Inherited from CameraCaptureSession)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Prepare(Surface)

Pre-allocate all buffers for an output Surface.

(Inherited from CameraCaptureSession)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetRepeatingBurst(IList<CaptureRequest>, CameraCaptureSession+CaptureCallback, Handler)

Request endlessly repeating capture of a sequence of images by this capture session.

(Inherited from CameraCaptureSession)
SetRepeatingBurstRequests(IList<CaptureRequest>, IExecutor, CameraCaptureSession+CaptureCallback)

Request endlessly repeating capture of a sequence of images by this capture session.

(Inherited from CameraCaptureSession)
SetRepeatingRequest(CaptureRequest, CameraCaptureSession+CaptureCallback, Handler)

Request endlessly repeating capture of images by this capture session.

(Inherited from CameraCaptureSession)
SetSingleRepeatingRequest(CaptureRequest, IExecutor, CameraCaptureSession+CaptureCallback)

Request endlessly repeating capture of images by this capture session.

(Inherited from CameraCaptureSession)
StopRepeating()

Cancel any ongoing repeating capture set by either #setRepeatingRequest setRepeatingRequest or #setRepeatingBurst.

(Inherited from CameraCaptureSession)
SupportsOfflineProcessing(Surface)

Query whether a given Surface is able to support offline mode.

(Inherited from CameraCaptureSession)
SwitchToOffline(ICollection<Surface>, IExecutor, CameraOfflineSession+CameraOfflineSessionCallback)

Switch the current capture session and a given set of registered camera surfaces to offline processing mode.

(Inherited from CameraCaptureSession)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
UpdateOutputConfiguration(OutputConfiguration)

Update OutputConfiguration after configuration finalization see #finalizeOutputConfigurations.

(Inherited from CameraCaptureSession)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to