internal void ForeachEditorial(Action <PlaceEditorialHandle> action) { // PlaceEditorialHandle is valid only in this callback and users should not keep its reference EditorialsCallback callback = (index, total, handle, userData) => { action(new PlaceEditorialHandle(handle, true)); return(true); }; ForeachEditorial(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get editorial list from native handle"); }
internal static extern ErrorCode ForeachEditorial(IntPtr /* maps_place_h */ place, EditorialsCallback callback, IntPtr /* void */ userData);