Skip to main content
Version: 10 Jul 2024

CaptureRequest

NameSpace: Android

Inherits from:
IDisposable

Public Methods

void Dispose

public void Dispose()

delegate JobHandle OnFrameAvailable

public delegate JobHandle OnFrameAvailable(
AndroidCamera camera,
CaptureRequest request,
NativeImage image,
IntPtr context
)

Parameters

TypeNameDescription
AndroidCameracamera
CaptureRequestrequest
NativeImageimage
IntPtrcontext

bool TrySetMetadata

Set a metadata value for the capture request in the form of one or more bytes .

public bool TrySetMetadata(
uint tag,
byte [] values
)

Parameters

TypeNameDescription
uinttagEnumeration for the metadata tag, e.g. a member of NDK.Camera.Metadata.Tags or MagicLeapCameras.MetadataTags
byte []valuesArray containing all of the desired values to assign to the metadata tag. The correct number of values depends on the metadata tag.

Returns:


bool TrySetMetadata

Set a metadata value for the capture request in the form of one or more ints .

public bool TrySetMetadata(
uint tag,
int [] values
)

Parameters

TypeNameDescription
uinttagEnumeration for the metadata tag, e.g. a member of NDK.Camera.Metadata.Tags or MagicLeapCameras.MetadataTags
int []valuesArray containing all of the desired values to assign to the metadata tag. The correct number of values depends on the metadata tag.

Returns:


bool TrySetMetadata

Set a metadata value for the capture request in the form of one or more longs .

public bool TrySetMetadata(
uint tag,
long [] values
)

Parameters

TypeNameDescription
uinttagEnumeration for the metadata tag, e.g. a member of NDK.Camera.Metadata.Tags or MagicLeapCameras.MetadataTags
long []valuesArray containing all of the desired values to assign to the metadata tag. The correct number of values depends on the metadata tag.

Returns:


bool TrySetMetadata

Set a metadata value for the capture request in the form of one or more doubles .

public bool TrySetMetadata(
uint tag,
double [] values
)

Parameters

TypeNameDescription
uinttagEnumeration for the metadata tag, e.g. a member of NDK.Camera.Metadata.Tags or MagicLeapCameras.MetadataTags
double []valuesArray containing all of the desired values to assign to the metadata tag. The correct number of values depends on the metadata tag.

Returns:


bool TrySetMetadata

Set a metadata value for the capture request in the form of one or more floats .

public bool TrySetMetadata(
uint tag,
float [] values
)

Parameters

TypeNameDescription
uinttagEnumeration for the metadata tag, e.g. a member of NDK.Camera.Metadata.Tags or MagicLeapCameras.MetadataTags
float []valuesArray containing all of the desired values to assign to the metadata tag. The correct number of values depends on the metadata tag.

Returns:


bool TrySetMetadata

Set a metadata value for the capture request in the form of one or more ACameraMetadata.Rational.

public bool TrySetMetadata(
uint tag,
ACameraMetadata.Rational [] values
)

Parameters

TypeNameDescription
uinttagEnumeration for the metadata tag, e.g. a member of NDK.Camera.Metadata.Tags or MagicLeapCameras.MetadataTags
ACameraMetadata.Rational []valuesArray containing all of the desired values to assign to the metadata tag. The correct number of values depends on the metadata tag.

Returns: