Class CameraInfo
- Namespace
- Uralstech.UXR.QuestCamera
Information describing a camera device.
public sealed class CameraInfo : CameraMetadata
- Inheritance
-
objectCameraInfo
- Inherited Members
- Extension Methods
Constructors
CameraInfo(string, AndroidJavaObject, Key?, Key?)
public CameraInfo(string cameraId, AndroidJavaObject native, CameraMetadata.Key? metaQuestSourceKey = null, CameraMetadata.Key? metaQuestPositionKey = null)
Parameters
cameraIdstringnativeAndroidJavaObjectmetaQuestSourceKeyCameraMetadata.KeymetaQuestPositionKeyCameraMetadata.Key
Fields
CameraId
The device ID of the camera.
public readonly string CameraId
Field Value
- string
Eye
The eye the camera is closest to.
public readonly CameraInfo.CameraEye Eye
Field Value
Intrinsics
The intrinsic data for this camera.
public readonly CameraInfo.CameraIntrinsics? Intrinsics
Field Value
LensPoseRotation
The orientation of the camera relative to the sensor coordinate system, converted from Android sensor rotation space to Unity rotation space.
public readonly Quaternion? LensPoseRotation
Field Value
- Quaternion?
LensPoseTranslation
The position of the camera's optical center, converted from Android sensor space to Unity space.
public readonly Vector3? LensPoseTranslation
Field Value
- Vector3?
Source
The source of the camera feed.
public readonly CameraInfo.CameraSource Source
Field Value
SupportedResolutions
The resolutions supported by this camera.
public readonly Resolution[] SupportedResolutions
Field Value
- Resolution[]
SupportedStreamUseCases
The stream use cases supported by this camera, if any.
public readonly StreamUseCase[] SupportedStreamUseCases
Field Value
Remarks
Guaranteed to an empty array on devices < API Level 33.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(CameraInfo?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CameraInfo? other)
Parameters
otherCameraInfoAn object to compare with this object.
Returns
GetAvailableCaptureRequestKeys()
Returns the keys supported by this CameraDevice for querying with a CaptureRequest.
public CameraMetadata.Key[] GetAvailableCaptureRequestKeys()
Returns
- Key[]
GetAvailableCaptureResultKeys()
Returns the keys supported by this CameraDevice for querying with a CaptureResult.
public CameraMetadata.Key[] GetAvailableCaptureResultKeys()
Returns
- Key[]
GetAvailableSessionCharacteristicsKeys()
Returns the keys for this CameraDevice whose values are capture session specific.
public CameraMetadata.Key[] GetAvailableSessionCharacteristicsKeys()
Returns
- Key[]
Remarks
Returns an empty array on devices < API Level 35.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetKeysNeedingPermission()
Returns a subset of the keys returned by GetKeys() with all keys that require camera clients to obtain the Manifest.permission.CAMERA permission.
public CameraMetadata.Key[] GetKeysNeedingPermission()
Returns
- Key[]
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(CameraInfo?, CameraInfo?)
public static bool operator ==(CameraInfo? a, CameraInfo? b)
Parameters
aCameraInfobCameraInfo
Returns
- bool
operator !=(CameraInfo?, CameraInfo?)
public static bool operator !=(CameraInfo? a, CameraInfo? b)
Parameters
aCameraInfobCameraInfo
Returns
- bool