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