Gem Gl Surface Adapter
GemGlSurfaceAdapter will create a MapView using a GemSurfaceContainerAdapter.
If GemSdk wasn't initialized yet then this surface will call GemSdk.initSdkWithDefaults inside of init block.
A MapView is created by default. To disable this please use doCreateDefaultMapView = false
Properties
Flag to create a default map view once the init is done.
Gem context if created.
Flag that indicates if this instance had been initialized.
Default Map View. This will be created only if doCreateDefaultMapView was true.
Triggered after the default map view had been created. Will be called on SdkCall.
Triggered on system's GLThread. GemSdk's thread is locked.
On Fling Callback
On Scale Callback
Triggered after the screen has been successfully created. Will be called on SdkCall.
On Scroll Callback
Indicates that the visible area provided by the host has changed.
Visible Area. See onVisibleAreaChanged
Functions
Must be called when androidx.car.app.SurfaceCallback.onStableAreaChanged is triggered.
Must be called when androidx.car.app.SurfaceCallback.onSurfaceAvailable is triggered.
Must be called when androidx.car.app.SurfaceCallback.onSurfaceDestroyed is triggered.
Must be called when androidx.car.app.SurfaceCallback.onVisibleAreaChanged is triggered.
Releases the default MapView that has been created using attribute "app:createDefaultMapView="true"". You might want to hide this full surface map view and use custom separated views, consider using this.