ReviewKt

public final class ReviewKt


Summary

Public methods

static final @NonNull Review
review(
    double rating,
    @NonNull AuthorAttribution authorAttribution,
    @ExtensionFunctionType Function1<@NonNull Review.Builder, Unit> actions
)

This method is deprecated. Update your code to use the Place Details component in Places UI Kit, which provides a pre-built UI to display place details including photos and reviews that automatically handles required attributions.

Public methods

review

public static final @NonNull Review review(
    double rating,
    @NonNull AuthorAttribution authorAttribution,
    @ExtensionFunctionType Function1<@NonNull Review.Builder, Unit> actions
)

Builds a new Review.

Parameters
double rating

the rating of the review

@NonNull AuthorAttribution authorAttribution

the AuthorAttribution of the review

@ExtensionFunctionType Function1<@NonNull Review.Builder, Unit> actions

the actions to apply to the Review.Builder

Returns
@NonNull Review

the constructed Review