示例#1
0
        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");
        }
示例#2
0
 internal static extern ErrorCode ForeachManeuver(IntPtr /* maps_route_segment_h */ segment, ManeuverCallback callback, IntPtr /* void */ userData);