# GoogleNavigation Framework Reference

# GMSNavigationDirectionsListController

    @interface GMSNavigationDirectionsListController : NSObject

A controller that manages and displays a directions list. The controller maintains its
own states internally based on the associated `navigator`. The `directionsListView` is updated
automatically based on `navigator` states.
- `


  ### [directionsListView](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController#/c:objc(cs)GMSNavigationDirectionsListController(py)directionsListView)


  ` The view that displays the directions list. The view is lazy loaded when it is accessed for the
  first time.

  #### Declaration

  Swift

      var directionsListView: UIView { get }

  Objective-C

      @property (nonatomic, readonly) UIView *_Nonnull directionsListView;

- `


  ### [-initWithNavigator:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController#/c:objc(cs)GMSNavigationDirectionsListController(im)initWithNavigator:)


  ` Initializes the controller with a `navigator`.

  #### Declaration

  Swift

      init(navigator: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigator.html)

  Objective-C

      - (nonnull instancetype)initWithNavigator:(nonnull https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigator.html *)navigator;

  #### Parameters

  |---|---|
  | ` navigator ` | The controller automatically updates the list based on the current state of the `navigator` after `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController.html#/c:objc(cs)GMSNavigationDirectionsListController(py)directionsListView` is accessed for the first time. |

- `


  ### [-reloadData](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController#/c:objc(cs)GMSNavigationDirectionsListController(im)reloadData)


  ` Updates the data source from the latest `navigator` state and reload the list. Calling this
  method before `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController.html#/c:objc(cs)GMSNavigationDirectionsListController(py)directionsListView` is accessed for the first time results in no-op.

  #### Declaration

  Swift

      func reloadData()

  Objective-C

      - (void)reloadData;

- `


  ### [-invalidateLayout](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController#/c:objc(cs)GMSNavigationDirectionsListController(im)invalidateLayout)


  ` Invalidates the layout of the `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController.html#/c:objc(cs)GMSNavigationDirectionsListController(py)directionsListView`. This should be called during events
  such as rotations and view size changes. Calling this method before `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController.html#/c:objc(cs)GMSNavigationDirectionsListController(py)directionsListView` is
  accessed for the first time results in no-op.

  #### Declaration

  Swift

      func invalidateLayout()

  Objective-C

      - (void)invalidateLayout;

- `


  ### [-init](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController#/c:objc(cs)GMSNavigationDirectionsListController(im)init)


  ` Unavailable
  Use `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationDirectionsListController.html#/c:objc(cs)GMSNavigationDirectionsListController(im)initWithNavigator:` instead.

  #### Declaration

  Objective-C

      - (null_unspecified instancetype)init;