GooglePlacesSwift Framework Reference

SearchMediaOptions

struct SearchMediaOptions
extension SearchMediaOptions : Equatable, Sendable, SendableMetatype

The options to use when searching through a place’s media.

  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    static func == (a: SearchMediaOptions, b: SearchMediaOptions) -> Bool
  • Initializes a new instance of SearchMediaOptions.

    Declaration

    Swift

    init(query: String? = nil, rankPreference: SearchMediaRankPreference = .unspecified)

    Parameters

    query

    The query to use when searching through a place’s media.

    rankPreference

    The preferred order of the returned media. Defaults to .unspecified.

  • The query to use when searching through a place’s media.

    Declaration

    Swift

    var query: String?
  • The preferred order of the returned media.

    Declaration

    Swift

    var rankPreference: SearchMediaRankPreference