MapCameraObject
Objective-C
@interface MapCameraObject : NSObject
Swift
class MapCameraObject : NSObject
An object that manages a map view camera.
-
Initializes and returns a newly allocated object using the model data.
Declaration
Objective-C
- (nonnull instancetype)initWithModelData:(nonnull void *)data;
-
Returns the model data.
Declaration
Objective-C
- (nonnull void *)getModelData;
-
Saves the current state of the camera into a binary format. The data buffer instance containing the binary representation of the camera’s current state. @details The returned buffer can be used to restore the camera state at a later time.
Declaration
Objective-C
- (nullable NSData *)saveCameraState;
Swift
func saveCameraState() -> Data?
-
Restores the camera’s state from a previously saved binary format.
Declaration
Objective-C
- (SDKErrorCode)restoreCameraState:(nonnull NSData *)data;
Swift
func restoreCameraState(_ data: Data) -> SDKErrorCode
Parameters
data
The data buffer instance containing the binary data to restore the camera’s state from. @details The returned integer indicating the success (0) or failure (non-zero) of the operation.