use Specialized Location Layer
open fun useSpecializedLocationLayer(useSpecializedLocationLayer: Boolean): LocationComponentActivationOptions.Builder
True if you want to initialize and use the specialized location layer to render the location puck.
The specialized layer is not based on runtime styling. This brings significant performance improvements, but since it's not based on the runtime styling, it's not fully compatible with the traditional implementation. The incompatibilities are:
- Constants like BACKGROUND_LAYER, ACCURACY_LAYER or LOCATION_SOURCE are ignored. The only usable and valid for relative positioning layer ID is FOREGROUND_LAYER.
- All options that alter the image ID, like foregroundName, are ignored. Use foregroundDrawable to alter the image rendered as the puck.
- The LocationComponent's pulsing effect. Any of the LocationComponentOptions' pulsing methods such as pulseEnabled or pulseColor, are useless when using the the specialized location layer.
Return
the Builder object being constructed
Parameters
use Specialized Location Layer
true if you want to initialize and use the specialized location layer. Defaults to false.