LongRoutesOptimisationOptions

sealed class LongRoutesOptimisationOptions

Controls if the Nav SDK behaves in a regular or an optimised way.

Types

Link copied to clipboard
object NoOptimisations : LongRoutesOptimisationOptions

This option keeps default behavior. Use this option if your app doesn't fail with OutOfMemoryError because of heavy routes models.

Link copied to clipboard
data class OptimiseNavigationForLongRoutes(val responseToParseSizeBytes: Int) : LongRoutesOptimisationOptions

This option enables optimised behaviour of the Navigation SDK. The optimised behaviour let the Nav SDK handle heavy routes without OutOfMemoryError. The optimised behavior is different from regular in the following ways:

Inheritors

Link copied to clipboard
Link copied to clipboard