Table of Contents

Class CaptureSessionBase<TProxy>.ProxyBase

Java proxy to handle native callbacks.

public abstract class CaptureSessionBase<TProxy>.ProxyBase : AndroidJavaProxy
Inheritance
object
CaptureSessionBase<TProxy>.ProxyBase
Derived
Extension Methods

Remarks

All event callbacks will be on a Java thread, and are performance sensitive.

Constructors

ProxyBase()

public ProxyBase()

ProxyBase(string)

protected ProxyBase(string className)

Parameters

className string

Events

ModifyRequestBuilder

A callback for modification of all CaptureRequest builders created for the session.

public event CaptureSessionBase<TProxy>.ModifyRequestBuilderCallback? ModifyRequestBuilder

Event Type

CaptureSessionBase<TProxy>.ModifyRequestBuilderCallback

Remarks

You should generally avoid configuring the request if isRepeatingRequest is true for on-demand sessions.

OnCaptureCompleted

Called when an image capture has fully completed and all the result metadata is available.

public event Action<CaptureRequest, TotalCaptureResult>? OnCaptureCompleted

Event Type

Action<CaptureRequest, TotalCaptureResult>

Remarks

Override ShouldRegisterCaptureEvents for capture requests that should invoke this event. DO NOT persist references beyond the callback.

OnCaptureFailed

Called instead of OnCaptureCompleted when the camera device failed to produce a CaptureResult for the request.

public event Action<CaptureRequest, CaptureFailure>? OnCaptureFailed

Event Type

Action<CaptureRequest, CaptureFailure>

Remarks

Override ShouldRegisterCaptureEvents for capture requests that should invoke this event. DO NOT persist references beyond the callback.

OnCaptureSequenceAborted

Called when a capture sequence aborts before any CaptureResult or CaptureFailure for it have been returned via this listener.

public event Action<int>? OnCaptureSequenceAborted

Event Type

Action<int>

Remarks

Override ShouldRegisterCaptureEvents for capture requests that should invoke this event. DO NOT persist references beyond the callback.

OnCaptureSequenceCompleted

Called when a capture sequence finishes and all CaptureResult or CaptureFailure for it have been returned via this listener.

public event Action<int, long>? OnCaptureSequenceCompleted

Event Type

Action<int, long>

Remarks

Override ShouldRegisterCaptureEvents for capture requests that should invoke this event. DO NOT persist references beyond the callback.

OnClosed

Called when the session is closed.

public event Action? OnClosed

Event Type

Action

OnConfigureFailed

Called when the session could not be configured.

public event Action<CaptureSessionBase<TProxy>.ErrorCode>? OnConfigureFailed

Event Type

Action<CaptureSessionBase<TProxy>.ErrorCode>

OnConfigured

Called when the session has been configured.

public event Action? OnConfigured

Event Type

Action

OnRequestFailed

Called when the session request could not be set.

public event Action<CaptureSessionBase<TProxy>.ErrorCode>? OnRequestFailed

Event Type

Action<CaptureSessionBase<TProxy>.ErrorCode>

OnRequestSet

Called when the session request has been set.

public event Action? OnRequestSet

Event Type

Action

OnRequestSetWithId

Same as OnRequestSet, but includes the sequence ID of the capture request.

public event Action<int>? OnRequestSetWithId

Event Type

Action<int>

ShouldRegisterCaptureEvents

A callback for configuring if capture-specific events should be registered for a capture request. Defaults to false.

public event CaptureSessionBase<TProxy>.ShouldRegisterCaptureEventsCallback? ShouldRegisterCaptureEvents

Event Type

CaptureSessionBase<TProxy>.ShouldRegisterCaptureEventsCallback

Remarks

Please only register one listener to this event for each session.