Warning

This feature is available in the NaviKit SDK version.

Package world.mappable.mapkit.navigation.automotive

Class NavigationSerialization

java.lang.Object
    ↳ world.mappable.mapkit.navigation.automotive.NavigationSerialization

class NavigationSerialization

Summary

Constructors

Signature and Description

NavigationSerialization()

Methods

Type and modifiers

Method and Description

static native byte[]

serialize(@NonNull Navigation navigation)
Serializes a given instance of Navigation.

static native Navigation

deserialize(@NonNull byte[] serializedNavigation)
Deserializes a given instance of Navigation.

Constuctors

NavigationSerialization()


Methods

serialize

@NonNull
byte[] serialize(@NonNull Navigation navigation)

Serializes a given instance of Navigation.


deserialize

@Nullable
Navigation deserialize(@NonNull byte[] serializedNavigation)

Deserializes a given instance of Navigation.

Navigation will be in the suspended mode. Returns null if deserialization failed.