internal void ForeachManeuver(Action <RouteManeuverHandle> action) { ManeuverCallback callback = (index, total, nativeHandle, userData) => { if (handle != IntPtr.Zero) { action(RouteManeuverHandle.CloneFrom(nativeHandle)); //Destroy(nativeHandle); } return(true); }; ForeachManeuver(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get segment list from native handle"); }
internal static extern ErrorCode ForeachManeuver(IntPtr /* maps_route_segment_h */ segment, ManeuverCallback callback, IntPtr /* void */ userData);