AI-generated Key Takeaways
-
GMSPanoramaCameraUpdateobjects are used to modify the camera view within aGMSPanoramaView. -
These updates control properties like heading, pitch, and zoom of the panorama camera.
-
Developers can use factory methods (e.g.,
rotateBy,setHeading) to create these updates. -
Updates are applied to a
GMSPanoramaViewto change the user's perspective.
GMSPanoramaCameraUpdate
@interface GMSPanoramaCameraUpdate : NSObjectGMSPanoramaCameraUpdate represents an update that may be applied to a GMSPanoramaView.
It encapsulates some logic for modifying the current camera.
It should only be constructed using the factory helper methods below.
-
Returns an update that increments the camera heading with
deltaHeading.Declaration
Swift
class func rotate(by deltaHeading: CGFloat) -> GMSPanoramaCameraUpdateObjective-C
+ (nonnull GMSPanoramaCameraUpdate *)rotateBy:(CGFloat)deltaHeading; -
Returns an update that sets the camera heading to the given value.
Declaration
Swift
class func setHeading(_ heading: CGFloat) -> GMSPanoramaCameraUpdateObjective-C
+ (nonnull GMSPanoramaCameraUpdate *)setHeading:(CGFloat)heading; -
Returns an update that sets the camera pitch to the given value.
Declaration
Swift
class func setPitch(_ pitch: CGFloat) -> GMSPanoramaCameraUpdateObjective-C
+ (nonnull GMSPanoramaCameraUpdate *)setPitch:(CGFloat)pitch; -
Returns an update that sets the camera zoom to the given value.
Declaration
Swift
class func setZoom(_ zoom: CGFloat) -> GMSPanoramaCameraUpdateObjective-C
+ (nonnull GMSPanoramaCameraUpdate *)setZoom:(CGFloat)zoom;