PhotoMetadataKt

public final class PhotoMetadataKt


Summary

Public methods

static final @NonNull PhotoMetadata
photoMetadata(
    @NonNull String photoReference,
    @ExtensionFunctionType Function1<@NonNull PhotoMetadata.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

photoMetadata

public static final @NonNull PhotoMetadata photoMetadata(
    @NonNull String photoReference,
    @ExtensionFunctionType Function1<@NonNull PhotoMetadata.Builder, Unit> actions
)

Builds a new PhotoMetadata.

Parameters
@NonNull String photoReference

the reference identifying the underlying photo

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

the actions to apply to the PhotoMetadata.Builder

Returns
@NonNull PhotoMetadata

the constructed PhotoMetadata