# AndroidXRImageTrackingSubsystem

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

## Summary

### Inheritance

Inherits from: `XRImageTrackingSubsystem`

| ### Public functions ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/AndroidXRImageTrackingSubsystem#trygetmarkerdata(TrackableId marker, out 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. |
| `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

### TryGetMarkerData

```c#
bool TryGetMarkerData(
  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.


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.


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.