GMSServices.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // GMSServices.h
  3. // Google Maps SDK for iOS
  4. //
  5. // Copyright 2012 Google Inc.
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. /** Service class for the Google Maps SDK for iOS. */
  11. @interface GMSServices : NSObject
  12. /**
  13. * Provides the shared instance of GMSServices for the Google Maps SDK for iOS,
  14. * creating it if necessary. Classes such as GMSMapView and GMSPanoramaView will
  15. * hold this instance to provide their connection to Google.
  16. *
  17. * This is an opaque object. If your application often creates and destroys view
  18. * or service classes provided by the Google Maps SDK for iOS, it may be useful
  19. * to hold onto this object directly, as otherwise your connection to Google
  20. * may be restarted on a regular basis. It also may be useful to take this
  21. * object in advance of the first map creation, to reduce initial map creation
  22. * performance cost.
  23. *
  24. * This method will throw an exception if provideAPIKey: has not been called.
  25. */
  26. + (id<NSObject>)sharedServices;
  27. /**
  28. * Provides your API key to the Google Maps SDK for iOS. This key is generated
  29. * for your application via the Google APIs Console, and is paired with your
  30. * application's bundle ID to identify it. This should be called exactly once
  31. * by your application, e.g., in application: didFinishLaunchingWithOptions:.
  32. *
  33. * @return YES if the APIKey was successfully provided
  34. */
  35. + (BOOL)provideAPIKey:(NSString *)APIKey;
  36. /**
  37. * Returns the open source software license information for Google Maps SDK for
  38. * iOS. This information must be made available within your application.
  39. */
  40. + (NSString *)openSourceLicenseInfo;
  41. /**
  42. * Returns the version for this release of the Google Maps SDK for iOS.
  43. */
  44. + (NSString *)SDKVersion;
  45. @end