The Android XR SDK has reached Developer Preview 4, and we want your feedback! Try things out, and visit our support page to reach out.
AndroidXRImageTrackingSubsystem
The Android XR implementation of the XRImageTrackingSubsystem so it can work seamlessly with ARTrackedImageManager.
Summary
Inheritance
Inherits from:XRImageTrackingSubsystem
Public functions |
|
|---|---|
TryGetMarkerData(TrackableId marker, out XRMarkerDictionary dictionary, out int markId)
|
bool
Try to get the XRMarkerDictionary and the id from the dictionary of a marker image.
|
TryGetQrCodeData(TrackableId qrCode, out string decodedData)
|
bool
Try to get the decoded data from a QR code image.
|
Public functions
TryGetMarkerData
boolTryGetMarkerData( TrackableIdmarker, outXRMarkerDictionary dictionary, outintmarkId )
Try to get the XRMarkerDictionary and the id from the dictionary of a marker image.
| Details | |
|---|---|
| Parameters |
marker
The TrackableId which represents a marker ARTrackedImage.
dictionary
The XRMarkerDictionary it belongs to.
markId
The id from the dictionary .
|
| Returns |
True if it gets marker data successfully. |
TryGetQrCodeData
boolTryGetQrCodeData( TrackableIdqrCode, outstringdecodedData )
Try to get the decoded data from a QR code image.
| Details | |
|---|---|
| Parameters |
qrCode
The TrackableId which represents a QR Code ARTrackedImage.
decodedData
The decoded QR code data.
|
| Returns |
true, if it succeed to get QR Code data and decodedData contains valid data. |