AndroidXRRuntimeImageLibrary
Constructs a RuntimeReferenceImageLibrary which stores reference images for Marker Tracking and QR Code trackng at Android XR devices.
Summary
Inheritance
Inherits from:RuntimeReferenceImageLibrary| Constructors and Destructors | |
|---|---|
| AndroidXRRuntimeImageLibrary(XRReferenceImageLibrary library)Constructs a AndroidXRRuntimeImageLibrary from a given XRReferenceImageLibrary | 
| Public attributes | |
|---|---|
| MarkerReferenceCount => _markerCount | intGets the count of marker reference images.  | 
| MarkerReferenceIndex => _markerIndex | intGets the index of the first marker reference image.  | 
| QrCodeReferenceIndex => _qrCodeIndex | intGets the index of QR Code reference image.  | 
| count => _images.Count | override int | 
| Properties | |
|---|---|
| QRCodeReference | XRReferenceImageGets QR Code reference image, or  nullif it's not found from the library. | 
| Public static functions | |
|---|---|
| IsMarkerReference(XRReferenceImage image) | boolDetermine if the given reference image is a marker reference.  | 
| IsQrCodeReference(XRReferenceImage image) | boolDetermine if the given reference image is a QR code reference.  | 
| ValidateMarker(IReferenceImageLibrary imageLibrary) | voidValidate marker configuration with a given XRReferenceImageLibrary.  | 
| ValidateQrCode(IReferenceImageLibrary imageLibrary) | voidValidate QR code configuration with a given XRReferenceImageLibrary.  | 
Public attributes
MarkerReferenceCount
int MarkerReferenceCount => _markerCount
Gets the count of marker reference images.
It can be used to iterate all marker reference images starting from MarkerReferenceIndex.
MarkerReferenceIndex
int MarkerReferenceIndex => _markerIndex
Gets the index of the first marker reference image.
Or return -1 if it doesn't exist.
QrCodeReferenceIndex
int QrCodeReferenceIndex => _qrCodeIndex
Gets the index of QR Code reference image.
Or return -1 if it doesn't exist.
count
override int count => _images.Count
Properties
QRCodeReference
XRReferenceImage QRCodeReference
Gets QR Code reference image, or null if it's not found from the library. 
Public functions
AndroidXRRuntimeImageLibrary
AndroidXRRuntimeImageLibrary( XRReferenceImageLibrary library )
Constructs a AndroidXRRuntimeImageLibrary from a given XRReferenceImageLibrary
| Details | |||
|---|---|---|---|
| Parameters | 
 | ||
Public static functions
IsMarkerReference
bool IsMarkerReference( XRReferenceImage image )
Determine if the given reference image is a marker reference.
| Details | |||
|---|---|---|---|
| Parameters | 
 | ||
| Returns | true, if it's a valid marker reference. | ||
IsQrCodeReference
bool IsQrCodeReference( XRReferenceImage image )
Determine if the given reference image is a QR code reference.
| Details | |||
|---|---|---|---|
| Parameters | 
 | ||
| Returns | true, if it's a valid QR code reference. | ||
ValidateMarker
void ValidateMarker( IReferenceImageLibrary imageLibrary )
Validate marker configuration with a given XRReferenceImageLibrary.
It may be updated through XRMarkerDatabase or manually added marker references where the XRReferenceImage.name matchs format "{
| Details | |||
|---|---|---|---|
| Parameters | 
 | ||
ValidateQrCode
void ValidateQrCode( IReferenceImageLibrary imageLibrary )
Validate QR code configuration with a given XRReferenceImageLibrary.
Note: only one reference is needed for QR code tracking, where the XRReferenceImage.name starts with QRCode, case insensitive. 
| Details | |||
|---|---|---|---|
| Parameters | 
 | ||
