Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 internal static extern ErrorCode ForeachReview(IntPtr /* maps_place_h */ place, ReviewsCallback callback, IntPtr /* void */ userData);