GoogleARCore.CameraMetadataValue

Struct to contain camera metadata's value.

Summary

When querying data from the struct, caller is responsible for making sure the querying data type matches the ValueType.

For example: if ValueType is typeof(byte), caller should only use CameraMetadataValue.AsByte() to access the value.

Constructors and Destructors

CameraMetadataValue(sbyte byteValue)
Constructs CameraMetadataValue using sbyte.
CameraMetadataValue(int intValue)
Constructs CameraMetadataValue using int.
CameraMetadataValue(long longValue)
Constructs CameraMetadataValue using long.
CameraMetadataValue(float floatValue)
Constructs CameraMetadataValue using float.
CameraMetadataValue(double doubleValue)
Constructs CameraMetadataValue using double.
CameraMetadataValue(CameraMetadataRational rationalValue)

Properties

ValueType
Type
Gets the Type of the CameraMetadataValue.

Public functions

AsByte()
sbyte
Gets sbyte value from the struct.
AsDouble()
double
Gets double value from the struct.
AsFloat()
float
Gets float value from the struct.
AsInt()
int
Gets int value from the struct.
AsLong()
long
Gets long value from the struct.
AsRational()
Gets CameraMetadataRational value from the struct.

Properties

ValueType

Type GoogleARCore::CameraMetadataValue::ValueType

Gets the Type of the CameraMetadataValue.

This Type must be used to call the proper query function.

Public functions

AsByte

sbyte GoogleARCore::CameraMetadataValue::AsByte()

Gets sbyte value from the struct.

This function checks if the querying type matches the internal type field, and logs error if the types do not match.

Details
Returns
Returns sbyte value stored in the struct.

AsDouble

double GoogleARCore::CameraMetadataValue::AsDouble()

Gets double value from the struct.

This function checks if the querying type matches the internal type field, and logs error if the types do not match.

Details
Returns
Returns double value stored in the struct.

AsFloat

float GoogleARCore::CameraMetadataValue::AsFloat()

Gets float value from the struct.

This function checks if the querying type matches the internal type field, and logs error if the types do not match.

Details
Returns
Returns float value stored in the struct.

AsInt

int GoogleARCore::CameraMetadataValue::AsInt()

Gets int value from the struct.

This function checks if the querying type matches the internal type field, and logs error if the types do not match.

Details
Returns
Returns int value stored in the struct.

AsLong

long GoogleARCore::CameraMetadataValue::AsLong()

Gets long value from the struct.

This function checks if the querying type matches the internal type field, and logs error if the types do not match.

Details
Returns
Returns long value stored in the struct.

AsRational

CameraMetadataRational GoogleARCore::CameraMetadataValue::AsRational()

Gets CameraMetadataRational value from the struct.

This function checks if the querying type matches the internal type field, and logs error if the types do not match.

Details
Returns
Returns CameraMetadataRational value stored in the struct.

CameraMetadataValue

 GoogleARCore::CameraMetadataValue::CameraMetadataValue(
  sbyte byteValue
)

Constructs CameraMetadataValue using sbyte.

This constructor only sets the sbyte field in the struct, leaving the rest of the data to default value.

Details
Parameters
byteValue
The byte value set to the struct.

CameraMetadataValue

 GoogleARCore::CameraMetadataValue::CameraMetadataValue(
  int intValue
)

Constructs CameraMetadataValue using int.

This constructor only sets the int field in the struct, leaving the rest of the data to default value.

Details
Parameters
intValue
The int value set to the struct.

CameraMetadataValue

 GoogleARCore::CameraMetadataValue::CameraMetadataValue(
  long longValue
)

Constructs CameraMetadataValue using long.

This constructor only sets the long field in the struct, leaving the rest of the data to default value.

Details
Parameters
longValue
The long value set to the struct.

CameraMetadataValue

 GoogleARCore::CameraMetadataValue::CameraMetadataValue(
  float floatValue
)

Constructs CameraMetadataValue using float.

This constructor only sets the float field in the struct, leaving the rest of the data to default value.

Details
Parameters
floatValue
The float value set to the struct.

CameraMetadataValue

 GoogleARCore::CameraMetadataValue::CameraMetadataValue(
  double doubleValue
)

Constructs CameraMetadataValue using double.

This constructor only sets the double field in the struct, leaving the rest of the data to default value.

Details
Parameters
doubleValue
The double value set to the struct.

CameraMetadataValue

 GoogleARCore::CameraMetadataValue::CameraMetadataValue(
  CameraMetadataRational rationalValue
)

Constructs CameraMetadataValue using CameraMetadataRational.

This constructor only sets the CameraMetadataRational field in the struct, leaving the rest of the data to default value.

Details
Parameters
rationalValue
The CameraMetadataRational value set to the struct.

Send feedback about...