INVRouteDelegate

Objective-C

@protocol INVRouteDelegate <NSObject>

Swift

protocol INVRouteDelegate : NSObjectProtocol

경로의 진행률 변화의 결과를 알려주는 함수가 정의된 프로토콜.

See

INVRoute
  • 경로의 진행률이 변경되면 호출되는 콜백 메서드.

    Declaration

    Objective-C

    - (void)route:(nonnull INVRoute *)route
        didChangePassPosition:(nonnull INVLatLng *)position
                    passAngle:(double)angle
                 passDistance:(double)distance;

    Swift

    optional func route(_ route: INVRoute, didChangePassPosition position: INVLatLng, passAngle angle: Double, passDistance distance: Double)

    Parameters

    position

    진행된 위치.

    angle

    진행되는 각도.

    distance

    진행된 거리.