New pricing changes went into effect on July 16, 2018. For more information, check out the Guide for Existing Users.

GMSPlacePickerViewController Class Reference

GMSPlacePickerViewController Class Reference

Overview

GMSPlacePickerViewController provides an interface that displays the Place Picker.

Place selections made by the user are returned to the app via the GMSPlacePickerViewControllerDelegate protocol.

To use GMSPlacePickerViewController, set its delegate to an object in your app that conforms to the GMSPlacePickerViewControllerDelegate protocol and present the controller (for example using presentViewController). The GMSPlacePickerViewControllerDelegate delegate methods can be used to determine when the user has selected a place, cancelled selection, or when an error has occurred.

Public Member Functions

(instancetype) - initWithConfig:
 Initializes the place picker with a given configuration.

Properties

IBOutlet id
< GMSPlacePickerViewControllerDelegate
delegate
 Delegate to be notified when a place is selected or picking is cancelled.

Member Function Documentation

- (instancetype) initWithConfig: (GMSPlacePickerConfig *)  config

Initializes the place picker with a given configuration.

This does not start the process of picking a place.


Property Documentation

- (IBOutlet id<GMSPlacePickerViewControllerDelegate>) delegate [read, write, assign]

Delegate to be notified when a place is selected or picking is cancelled.

Send feedback about...