# AdvancedPlaceListView

    @MainActor
    struct AdvancedPlaceListView

    extension AdvancedPlaceListView : https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Protocols/SearchMediaSupportable.html, Sendable, SendableMetatype, View

A premium view that displays a unique list of place details results.
- `


  ### [Body](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV4Bodya)


  ` The type of view representing the body of this view.

  When you create a custom view, Swift infers this type from your
  implementation of the required `View/body-swift.property` property.

  #### Declaration

  Swift

      typealias Body = some View

- `


  ### [allContent](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV10allContentShyAA0defI0OGvpZ)


  ` All of the content that can be displayed for the view.

  #### Declaration

  Swift

      @MainActor
      static let allContent: Set<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/AdvancedPlaceListContent.html>

- `


  ### [body](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV4bodyQrvp)


  ` The content and behavior of the view.

  When you implement a custom view, you must implement a computed
  `body` property to provide the content for your view. Return a view
  that's composed of built-in views that SwiftUI provides, plus other
  composite views that you've already defined:

      struct MyView: View {
          var body: some View {
              Text("Hello, World!")
          }
      }

  For more information about composing views and a view hierarchy,
  see <doc:Declaring-a-Custom-View>.

  #### Declaration

  Swift

      @MainActor
      @preconcurrency
      var body: some View { get }

- `


  ### [cornerActions(actionsProvider:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV13cornerActions15actionsProviderACSayAA06CornerE13ActionElementOGAA0E0Vc_tF)


  ` Adds a closure to be called when place actions are requested for the corner area of the
  place view.

  Actions are presented starting from the corner and extend inwards.

  #### Declaration

  Swift

      @MainActor
      func cornerActions(actionsProvider: @escaping (https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Place.html) -> [https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/CornerPlaceActionElement.html]) -> AdvancedPlaceListView

  #### Parameters

  |---|---|
  | ` actionsProvider ` | A closure that returns a list of `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/CornerPlaceActionElement.html`s to be displayed for the specified location. An empty array should be returned if no elements are desired. |

  #### Return Value

  The `AdvancedPlaceListView` with the closure added.
- `


  ### [init(orientation:queries:configuration:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV11orientation7queries13configurationAcA0eG11OrientationO_0C2UI7BindingVySayAA0E12DetailsQueryVGGAA0deF13ConfigurationVtcfc)


  ` Initializes a new instance of `AdvancedPlaceListView`.

  #### Declaration

  Swift

      @MainActor
      init(orientation: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceViewOrientation.html = .vertical, queries: Binding<[https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsQuery.html]>, configuration: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListConfiguration.html)

  #### Parameters

  |---|---|
  | ` orientation ` | The orientation of the view. |
  | ` queries ` | The queries for the view, which are used when fetching the place details. There is a limit of 20 queries, and any additional queries will be ignored. |
  | ` configuration ` | The configuration settings for the view. |

  #### Return Value

  An instance of `AdvancedPlaceListView`.
- `


  ### [mainActions(actionsProvider:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV11mainActions15actionsProviderACSayAA04MainE13ActionElementOGAA0E0Vc_tF)


  ` Adds a closure to be called when place actions are requested for the main body area of the
  place view.

  #### Declaration

  Swift

      @MainActor
      func mainActions(actionsProvider: @escaping (https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Place.html) -> [https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/MainPlaceActionElement.html]) -> AdvancedPlaceListView

  #### Parameters

  |---|---|
  | ` actionsProvider ` | A closure that returns a list of `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/MainPlaceActionElement.html`s to be displayed for the specified location. An empty array should be returned if no elements are desired. |

  #### Return Value

  The `AdvancedPlaceListView` with the closure added.
- `


  ### [onLoad(_:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV6onLoadyACySays6ResultOyAA0E0VAA0B5ErrorOGGcF)


  ` Adds a callback to be called when the place results are loaded.

  #### Declaration

  Swift

      @MainActor
      func onLoad(_ callback: @escaping ([Result<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Place.html, https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlacesError.html>]) -> Void) -> AdvancedPlaceListView

  #### Parameters

  |---|---|
  | ` callback ` | The callback to be called when the place results are loaded. |

  #### Return Value

  The `AdvancedPlaceListView` with the callback added.
- `


  ### [onPlaceSelected(_:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV02onE8SelectedyACyAA0E0VcF)


  ` Adds a callback to be called when a place is selected.

  #### Declaration

  Swift

      @MainActor
      func onPlaceSelected(_ callback: @escaping (https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Place.html) -> Void) -> AdvancedPlaceListView

  #### Parameters

  |---|---|
  | ` callback ` | The callback to be called when a place is selected. |

  #### Return Value

  The `AdvancedPlaceListView` with the callback added.
- `


  ### [standardContent](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView#/s:17GooglePlacesSwift21AdvancedPlaceListViewV15standardContentShyAA0defI0OGvpZ)


  ` A set of standard content to be displayed for the view.

  #### Declaration

  Swift

      @MainActor
      static let standardContent: Set<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/AdvancedPlaceListContent.html>