ScannerModel and related references try to minimize strong references, and cleans up the ARView when the scanner tab is not in view.
ARViewScannerContainer (the ARView container) implements dismantle logic which calls ScannerModel#onViewDisappear() to clean up.
Oddly, while this does significantly improve memory usage, it still seems to retain quite a bit of seemingly-unneeded memory when the ARView is unloaded.
ScannerModel
and related references try to minimize strong references, and cleans up theARView
when the scanner tab is not in view.ARViewScannerContainer
(the ARView container) implements dismantle logic which callsScannerModel#onViewDisappear()
to clean up.Oddly, while this does significantly improve memory usage, it still seems to retain quite a bit of seemingly-unneeded memory when the ARView is unloaded.