GooglePlacesSwift Framework Reference

  • IsPlaceOpenResponse is a struct that represents the response from the isPlaceOpen method.

  • It includes a status property indicating whether the place is open, which is optional and may be nil.

  • There's an initializer specifically for unit testing that allows setting the status directly.

IsPlaceOpenResponse

struct IsPlaceOpenResponse
extension IsPlaceOpenResponse : Sendable

The response from the isPlaceOpen method.

  • Initializes the response with a given status.

    This is meant to be used for unit testing purposes.

    Declaration

    Swift

    init(status: Bool?)

    Parameters

    status

    The open status of the place.

  • The open status of the place.

    Declaration

    Swift

    var status: Bool? { get }