-
- All Implemented Interfaces:
-
com.ramcosta.composedestinations.navargs.DestinationsNavTypeSerializer
public final class DefaultParcelableNavTypeSerializer implements DestinationsNavTypeSerializer<Parcelable>
Default DestinationsNavTypeSerializer for Parcelables which converts them to Base64 strings and then parses them back.
This gets used by the generated code if you don't provide an explicit DestinationsNavTypeSerializer annotated with
@NavTypeSerializerfor the type being passed as navigation argument.
-
-
Constructor Summary
Constructors Constructor Description DefaultParcelableNavTypeSerializer(Class<out Parcelable> jClass)
-
Method Summary
Modifier and Type Method Description StringtoRouteString(Parcelable value)ParcelablefromRouteString(String routeStr)-
-
Constructor Detail
-
DefaultParcelableNavTypeSerializer
DefaultParcelableNavTypeSerializer(Class<out Parcelable> jClass)
-
-
Method Detail
-
toRouteString
String toRouteString(Parcelable value)
-
fromRouteString
Parcelable fromRouteString(String routeStr)
-
-
-
-