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