GCCountryPickerDataSource

public protocol GCCountryPickerDataSource

The data source of a GCCountryPickerViewController object must adopt the GCCountryPickerDataSource protocol.

  • Asks the data source to provide a collection of ISO 3166-1 alpha-2 country codes for the specified country picker view controller.

    Declaration

    Swift

    func countryCodes(for countryPicker: GCCountryPickerViewController) -> [String]

    Parameters

    countryPicker

    The country picker view controller requesting this information.

    Return Value

    A collection of ISO 3166-1 alpha-2 country codes for the specified country picker view controller.