The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Stay organized with collections
Save and categorize content based on your preferences.
AndroidXRImageTrackingSubsystem
The Android XR implementation of the XRImageTrackingSubsystem so it can work seamlessly with ARTrackedImageManager.
Summary
Inheritance
Inherits from:
XRImageTrackingSubsystem
Public functions
TryGetMarkeData
bool TryGetMarkeData(
TrackableId marker,
out XRMarkerDictionary dictionary,
out int markId
)
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
|
|
markId
|
The id from the dictionary .
|
|
Returns
|
True if it gets marker data successfully.
|
TryGetQrCodeData
bool TryGetQrCodeData(
TrackableId qrCode,
out string decodedData
)
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.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-08 UTC."],[],[],null,["# AndroidXRImageTrackingSubsystem Class Reference\n\nAndroidXRImageTrackingSubsystem\n===============================\n\nThe Android XR implementation of the XRImageTrackingSubsystem so it can work seamlessly with ARTrackedImageManager.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `XRImageTrackingSubsystem`\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TryGetMarkeData](#trygetmarkedata)`(TrackableId marker, out `[XRMarkerDictionary](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary)` dictionary, out int markId)` | `bool` Try to get the [XRMarkerDictionary](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary) and the id from the dictionary of a marker image. |\n| [TryGetQrCodeData](#trygetqrcodedata)`(TrackableId qrCode, out string decodedData)` | `bool` Try to get the decoded data from a QR code image. |\n\nPublic functions\n----------------\n\n### TryGetMarkeData\n\n```c#\nbool TryGetMarkeData(\n TrackableId marker,\n out XRMarkerDictionary dictionary,\n out int markId\n)\n``` \nTry to get the [XRMarkerDictionary](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary) and the id from the dictionary of a marker image.\n\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------------|------------------------------------------------------------------------------------------------------------------------| | `marker` | The TrackableId which represents a marker ARTrackedImage. | | `dictionary` | The [XRMarkerDictionary](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary) it belongs to. | | `markId` | The id from the *dictionary* . | |\n| **Returns** | `True` if it gets marker data successfully. |\n\n### TryGetQrCodeData\n\n```c#\nbool TryGetQrCodeData(\n TrackableId qrCode,\n out string decodedData\n)\n``` \nTry to get the decoded data from a QR code image.\n\n\n| Details ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------------|------------------------------------------------------------| | `qrCode` | The TrackableId which represents a QR Code ARTrackedImage. | | `decodedData` | The decoded QR code data. | |\n| **Returns** | `true`, if it succeed to get QR Code data and *decodedData* contains valid data. |"]]