Skip to content

Difference from RouteListener interface in Java (old version) and Kotlin(v5 version) #157

@thanhdt-vietmap

Description

@thanhdt-vietmap

RouteListener in Java defines the following function

  boolean allowRerouteFrom(Point offRoutePoint);

  void onOffRoute(Point offRoutePoint);

  void onRerouteAlong(DirectionsRoute directionsRoute);

  void onFailedReroute(String errorMessage);

  void onArrival();

But in Kotlin, it defines

interface RouteListener {
    fun onResponseReceived(response: DirectionsResponse, routeProgress: RouteProgress)

    fun onErrorReceived(throwable: Throwable)
}

I need to implement onArrival, but can't find the implementation anywhere.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions