Skip to main content
Version: 12 Dec 2024

AndroidCamera

NameSpace: Android

Inherits from:
IDisposable

Public Methods

CaptureRequest CreateCaptureRequest

public CaptureRequest CreateCaptureRequest(
MagicLeapCameras.VideoCaptureMode captureMode,
CaptureRequest.OnFrameAvailable onFrameAvailable,
RequestTemplate template =RequestTemplate.Preview,
IntPtr context =default
)

Parameters

TypeNameDescription
MagicLeapCameras.VideoCaptureModecaptureMode
CaptureRequest.OnFrameAvailableonFrameAvailable
RequestTemplatetemplate
IntPtrcontext

void Dispose

public void Dispose()

int GetTimestamps

public int GetTimestamps(
NativeArray< long > timestampArray
)

Parameters

TypeNameDescription
NativeArray< long >timestampArray

bool TryStopRepeatingRequest

public bool TryStopRepeatingRequest()

bool TrySubmitCaptureRequest

public bool TrySubmitCaptureRequest(
CaptureRequest request,
bool repeating =false
)

Parameters

TypeNameDescription
CaptureRequestrequest
boolrepeating

bool TrySubmitCaptureRequests

public bool TrySubmitCaptureRequests(
CaptureRequest [] requests,
bool repeating =false
)

Parameters

TypeNameDescription
CaptureRequest []requests
boolrepeating

Public Attributes

Format


public MediaFormat Format => cameraState->imageReader.Format;


ImageHeight


public int ImageHeight => cameraState->imageReader.Height;


ImageWidth


public int ImageWidth => cameraState->imageReader.Width;


Public Enums

CaptureFormat

EnumeratorValueDescription
YUV_420_888MediaFormat.Yuv_420_888
JPEGMediaFormat.Jpeg

CaptureFrameRate

EnumeratorValueDescription
_1515
_3030
_6060