| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // GMSPanoramaService.h
- // Google Maps SDK for iOS
- //
- // Copyright 2013 Google Inc.
- //
- // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
- // Service: https://developers.google.com/maps/terms
- //
- #import <CoreLocation/CoreLocation.h>
- #if __has_feature(modules)
- @import GoogleMapsBase;
- #else
- #import <GoogleMapsBase/GoogleMapsBase.h>
- #endif
- @class GMSPanorama;
- GMS_ASSUME_NONNULL_BEGIN
- /**
- * Callback for when a panorama metadata becomes available.
- * If an error occured, |panorama| is nil and |error| is not nil.
- * Otherwise, |panorama| is not nil and |error| is nil.
- */
- typedef void (^GMSPanoramaCallback)(GMSPanorama *GMS_NULLABLE_PTR panorama,
- NSError *GMS_NULLABLE_PTR error);
- /**
- * GMSPanoramaService can be used to request panorama metadata even when a
- * GMSPanoramaView is not active.
- * Get an instance like this: [[GMSPanoramaService alloc] init].
- */
- @interface GMSPanoramaService : NSObject
- /**
- * Retrieves information about a panorama near the given |coordinate|.
- * This is an asynchronous request, |callback| will be called with the result.
- */
- - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
- callback:(GMSPanoramaCallback)callback;
- /**
- * Similar to requestPanoramaNearCoordinate:callback: but allows specifying
- * a search radius (meters) around |coordinate|.
- */
- - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
- radius:(NSUInteger)radius
- callback:(GMSPanoramaCallback)callback;
- /**
- * Retrieves information about a panorama with the given |panoramaID|.
- * |callback| will be called with the result. Only panoramaIDs obtained
- * from the Google Maps SDK for iOS are supported.
- */
- - (void)requestPanoramaWithID:(NSString *)panoramaID callback:(GMSPanoramaCallback)callback;
- @end
- GMS_ASSUME_NONNULL_END
|