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
Type | Name | Description |
---|---|---|
IntPtr | context | |
ACameraDevice | camera |
void OnCameraError
public static void OnCameraError(
IntPtr context,
ACameraDevice camera,
ACameraDevice.ErrorCode errorCode
)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | context | |
ACameraDevice | camera | |
ACameraDevice.ErrorCode | errorCode |
bool TryGetCameraIds
public bool TryGetCameraIds(
out ACameraIdList list
)
Parameters
Type | Name | Description |
---|---|---|
out ACameraIdList | list |
bool TryGetCameraMetadata
public bool TryGetCameraMetadata(
string cameraId,
out ACameraMetadata metadata
)
Parameters
Type | Name | Description |
---|---|---|
string | cameraId | |
out ACameraMetadata | metadata |
unsafe bool TryGetCameraMetadataNonAlloc
public unsafe bool TryGetCameraMetadataNonAlloc(
byte * cameraId,
out ACameraMetadata metadata
)
Parameters
Type | Name | Description |
---|---|---|
byte * | cameraId | |
out ACameraMetadata | metadata |
bool TryOpenCamera
public bool TryOpenCamera(
string cameraId,
out ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
string | cameraId | |
out ACameraDevice | camera |
unsafe bool TryOpenCameraNonAlloc
public unsafe bool TryOpenCameraNonAlloc(
byte * cameraId,
out ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
byte * | cameraId | |
out ACameraDevice | camera |
bool TryOpenCameraWithCallbacks
public bool TryOpenCameraWithCallbacks(
string cameraId,
ACameraDevice.StateCallbacks callbacks,
out ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
string | cameraId | |
ACameraDevice.StateCallbacks | callbacks | |
out ACameraDevice | camera |
unsafe bool TryOpenCameraWithCallbacksNonAlloc
public unsafe bool TryOpenCameraWithCallbacksNonAlloc(
byte * cameraId,
ACameraDevice.StateCallbacks callbacks,
out ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
byte * | cameraId | |
ACameraDevice.StateCallbacks | callbacks | |
out ACameraDevice | camera |
bool TryRegisterAvailabilityCallbacks
public bool TryRegisterAvailabilityCallbacks(
ref AvailabilityCallbacks callbacks
)
Parameters
Type | Name | Description |
---|---|---|
ref AvailabilityCallbacks | callbacks |
bool TrySubscribeToAvailabilityCallbacks
public bool TrySubscribeToAvailabilityCallbacks(
AvailabilityCallbacks callbacks,
out AvailabilityCallbackSubscription sub
)
Parameters
Type | Name | Description |
---|---|---|
AvailabilityCallbacks | callbacks | |
out AvailabilityCallbackSubscription | sub |
bool TryUnregisterAvailabilityCallbacks
public bool TryUnregisterAvailabilityCallbacks(
ref AvailabilityCallbacks callbacks
)
Parameters
Type | Name | Description |
---|---|---|
ref AvailabilityCallbacks | callbacks |
Public Attributes
IsNull
public bool IsNull => value == IntPtr.Zero;