AutocompleteConfiguration.swift 997 B

1234567891011121314151617181920212223242526
  1. // Copyright 2021 Google LLC. All rights reserved.
  2. //
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
  5. // file except in compliance with the License. You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software distributed under
  10. // the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
  11. // ANY KIND, either express or implied. See the License for the specific language governing
  12. // permissions and limitations under the License.
  13. import GooglePlaces
  14. /// The configurations for an autocomplete search.
  15. class AutocompleteConfiguration {
  16. let autocompleteFilter: GMSAutocompleteFilter
  17. var placeFields: GMSPlaceField
  18. var location: LocationOption?
  19. init(autocompleteFilter: GMSAutocompleteFilter, placeFields: GMSPlaceField) {
  20. self.autocompleteFilter = autocompleteFilter
  21. self.placeFields = placeFields
  22. }
  23. }