# AndroidXRImageTrackingSubsystem

The Android XR implementation of the XRImageTrackingSubsystem so it can work seamlessly with ARTrackedImageManager.

## Summary

### Inheritance

Inherits from:`XRImageTrackingSubsystem`

|                                                                                                                                                                                                                                                                  ### Public functions                                                                                                                                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [TryGetMarkeData](https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/AndroidXRImageTrackingSubsystem#trygetmarkedata)`(TrackableId marker, out `[XRMarkerDictionary](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary)` dictionary, out int markId)` | `bool` Try to get the[XRMarkerDictionary](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary)and the id from the dictionary of a marker image. |
| [TryGetQrCodeData](https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/AndroidXRImageTrackingSubsystem#trygetqrcodedata)`(TrackableId qrCode, out string decodedData)`                                                                                                                                          | `bool` Try to get the decoded data from a QR code image.                                                                                                                                               |

## Public functions

### TryGetMarkeData

```c#
bool TryGetMarkeData(
  TrackableId marker,
  out XRMarkerDictionary dictionary,
  out int markId
)
```  
Try to get the[XRMarkerDictionary](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary)and the id from the dictionary of a marker image.

<br />

|                                                                                                                                                                                                                                                                                                                                             Details                                                                                                                                                                                                                                                                                                                                              ||
|-------------| |
| Parameters  | |--------------|---------------------------------------------------------------------------------------------------------------------------------------------------| | `marker`     | The TrackableId which represents a marker ARTrackedImage.                                                                                         | | `dictionary` | The[XRMarkerDictionary](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmarkerdictionary)it belongs to. | | `markId`     | The id from the*dictionary*.                                                                                                                      | |
| **Returns** | `True`if it gets marker data successfully.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |

### TryGetQrCodeData

```c#
bool TryGetQrCodeData(
  TrackableId qrCode,
  out string decodedData
)
```  
Try to get the decoded data from a QR code image.

<br />

|                                                                                                                          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.                                                                                                                                                               |