Skip to main content
Version: 12 Dec 2024

ACameraManager

NameSpace: Camera

Inherits from:
INullablePointer,
IDisposable

Public Methods

ACameraManager Create

public static ACameraManager Create()

void Dispose

public void Dispose()

void OnCameraDisconnected

public static void OnCameraDisconnected(
IntPtr context,
ACameraDevice camera
)

Parameters

TypeNameDescription
IntPtrcontext
ACameraDevicecamera

void OnCameraError

public static void OnCameraError(
IntPtr context,
ACameraDevice camera,
ACameraDevice.ErrorCode errorCode
)

Parameters

TypeNameDescription
IntPtrcontext
ACameraDevicecamera
ACameraDevice.ErrorCodeerrorCode

bool TryGetCameraIds

public bool TryGetCameraIds(
out ACameraIdList list
)

Parameters

TypeNameDescription
out ACameraIdListlist

bool TryGetCameraMetadata

public bool TryGetCameraMetadata(
string cameraId,
out ACameraMetadata metadata
)

Parameters

TypeNameDescription
stringcameraId
out ACameraMetadatametadata

unsafe bool TryGetCameraMetadataNonAlloc

public unsafe bool TryGetCameraMetadataNonAlloc(
byte * cameraId,
out ACameraMetadata metadata
)

Parameters

TypeNameDescription
byte *cameraId
out ACameraMetadatametadata

bool TryOpenCamera

public bool TryOpenCamera(
string cameraId,
out ACameraDevice camera
)

Parameters

TypeNameDescription
stringcameraId
out ACameraDevicecamera

unsafe bool TryOpenCameraNonAlloc

public unsafe bool TryOpenCameraNonAlloc(
byte * cameraId,
out ACameraDevice camera
)

Parameters

TypeNameDescription
byte *cameraId
out ACameraDevicecamera

bool TryOpenCameraWithCallbacks

public bool TryOpenCameraWithCallbacks(
string cameraId,
ACameraDevice.StateCallbacks callbacks,
out ACameraDevice camera
)

Parameters

TypeNameDescription
stringcameraId
ACameraDevice.StateCallbackscallbacks
out ACameraDevicecamera

unsafe bool TryOpenCameraWithCallbacksNonAlloc

public unsafe bool TryOpenCameraWithCallbacksNonAlloc(
byte * cameraId,
ACameraDevice.StateCallbacks callbacks,
out ACameraDevice camera
)

Parameters

TypeNameDescription
byte *cameraId
ACameraDevice.StateCallbackscallbacks
out ACameraDevicecamera

bool TryRegisterAvailabilityCallbacks

public bool TryRegisterAvailabilityCallbacks(
ref AvailabilityCallbacks callbacks
)

Parameters

TypeNameDescription
ref AvailabilityCallbackscallbacks

bool TrySubscribeToAvailabilityCallbacks

public bool TrySubscribeToAvailabilityCallbacks(
AvailabilityCallbacks callbacks,
out AvailabilityCallbackSubscription sub
)

Parameters

TypeNameDescription
AvailabilityCallbackscallbacks
out AvailabilityCallbackSubscriptionsub

bool TryUnregisterAvailabilityCallbacks

public bool TryUnregisterAvailabilityCallbacks(
ref AvailabilityCallbacks callbacks
)

Parameters

TypeNameDescription
ref AvailabilityCallbackscallbacks

Public Attributes

IsNull


public bool IsNull => value == IntPtr.Zero;