internal void ForEach(Action <CoordinatesHandle> action) { CoordinatesCallback callback = (index, handle, userData) => { action(CoordinatesHandle.CloneFrom(handle)); return(true); }; Foreach(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get coordinates list from native handle"); }
internal static extern ErrorCode Foreach(IntPtr /* maps_coordinates_list_h */ coordinatesList, CoordinatesCallback callback, IntPtr /* void */ userData);
internal static extern ErrorCode ForeachPoint(IntPtr /* maps_view_object_h */ polygon, CoordinatesCallback callback, IntPtr /* void */ userData);