GooglePlacesSwift Framework Reference

SearchReviewsSupportable

protocol SearchReviewsSupportable

A protocol for views that support search reviews options.

  • Adds search reviews options to a place view.

    When this is set, a search will be performed through the place’s reviews.

    If the search was a success, and there were results, they will be displayed for the place. In all other cases, the default content will be displayed instead as a fallback (if possible).

    Declaration

    Swift

    @MainActor
    func searchReviewsOptions(_ options: SearchReviewsOptions?, completion: (([Result<SearchReviewsSummary, PlacesError>]) -> Void)? = nil) -> Self

    Parameters

    options

    The search options for the place’s reviews.

    completion

    The handler to be called when the searches are completed.

    Return Value

    The view with the search reviews options and completion handler applied.