Skip to main content
Version: 12 Dec 2024

AndroidCameraManager

NameSpace: Android

Public Methods

string [] GetCameraIdList

public static string [] GetCameraIdList()

bool TryCreateAndroidCamera

public static bool TryCreateAndroidCamera(
string cameraId,
StreamConfiguration config,
out AndroidCamera outCamera
)

Parameters

TypeNameDescription
stringcameraId
StreamConfigurationconfig
out AndroidCameraoutCamera

bool TryGetAvailableStreamConfigurations

public static bool TryGetAvailableStreamConfigurations(
string cameraId,
out NativeArray< StreamConfiguration > outConfigs
)

Parameters

TypeNameDescription
stringcameraId
out NativeArray< StreamConfiguration >outConfigs

bool TryGetCameraDimensions

public static bool TryGetCameraDimensions(
string cameraId,
out int width,
out int height
)

Parameters

TypeNameDescription
stringcameraId
out intwidth
out intheight

bool TryGetCameraMetadata

public static bool TryGetCameraMetadata(
string cameraId,
out ACameraMetadata outMetadata
)

Parameters

TypeNameDescription
stringcameraId
out ACameraMetadataoutMetadata