MSFMapEventListener
Objective-C
@interface MSFMapEventListener : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFMapEventListener : NSObject
Listener for events like map clicks etc.
-
Listener method that gets called at the end of the rendering process when the map view needs no further refreshing. Background tile loading may still change the view later. Called from the GL renderer thread, not from the main thread.
Declaration
Objective-C
- (void)onMapIdle;Swift
func onMapIdle() -
Listener method that gets called at the end of the rendering process when the map view needs no further refreshing. Background tile loading may still change the view later. Called from the GL renderer thread, not from the main thread.
Declaration
Objective-C
- (void)onMapIdleSwigExplicitMSFMapEventListener;Swift
func onMapIdleSwigExplicitMSFMapEventListener() -
Listener method that gets called when the map is panned, rotated, tilted or zoomed, by UI events or API calls. Updating MapView state from this method may result in deadlocks or crashes. The thread this method is called from may vary.
Declaration
Objective-C
- (void)onMapMoved:(enum MSFMapMoveReason)reason;Swift
func onMapMoved(_ reason: MSFMapMoveReason)Parameters
reasonWhat caused the camera change.
-
Listener method that gets called when the map is panned, rotated, tilted or zoomed, by UI events or API calls. Updating MapView state from this method may result in deadlocks or crashes. The thread this method is called from may vary.
Declaration
Objective-C
- (void)onMapMovedSwigExplicitMSFMapEventListener:(enum MSFMapMoveReason)reason;Swift
func onMapMovedSwigExplicitMSFMapEventListener(_ reason: MSFMapMoveReason)Parameters
reasonWhat caused the camera change.
-
Listener method that gets called once per movement when the camera comes to rest (animations finished, fingers lifted, inertia gone); a touch that did not move the camera does not call it. Tiles may still be loading - see onMapIdle for that. The thread this method is called from may vary.
Declaration
Objective-C
- (void)onMapStable:(enum MSFMapMoveReason)reason;Swift
func onMapStable(_ reason: MSFMapMoveReason)Parameters
reasonWhat caused the movement that just ended.
-
Listener method that gets called once per movement when the camera comes to rest (animations finished, fingers lifted, inertia gone); a touch that did not move the camera does not call it. Tiles may still be loading - see onMapIdle for that. The thread this method is called from may vary.
Declaration
Objective-C
- (void)onMapStableSwigExplicitMSFMapEventListener: (enum MSFMapMoveReason)reason;Swift
func onMapStableSwigExplicitMSFMapEventListener(_ reason: MSFMapMoveReason)Parameters
reasonWhat caused the movement that just ended.
-
Listener method that gets called when user has interacted with the map. The callback includes info about interaction type (panning, zooming, etc).
Declaration
Objective-C
- (void)onMapInteraction:(MSFMapInteractionInfo *)mapInteractionInfo;Swift
func onMapInteraction(_ mapInteractionInfo: MSFMapInteractionInfo!)Parameters
mapInteractionInfoA container that provides information about the interaction.
-
Listener method that gets called when user has interacted with the map. The callback includes info about interaction type (panning, zooming, etc).
Declaration
Objective-C
- (void)onMapInteractionSwigExplicitMSFMapEventListener: (MSFMapInteractionInfo *)mapInteractionInfo;Swift
func onMapInteractionSwigExplicitMSFMapEventListener(_ mapInteractionInfo: MSFMapInteractionInfo!)Parameters
mapInteractionInfoA container that provides information about the interaction.
-
Listener method that gets called when a click is performed on an empty area of the map. This method is not called from the main thread.
Declaration
Objective-C
- (void)onMapClicked:(MSFMapClickInfo *)mapClickInfo;Swift
func onMapClicked(_ mapClickInfo: MSFMapClickInfo!)Parameters
mapClickInfoA container that provides information about the click.
-
Listener method that gets called when a click is performed on an empty area of the map. This method is not called from the main thread.
Declaration
Objective-C
- (void)onMapClickedSwigExplicitMSFMapEventListener: (MSFMapClickInfo *)mapClickInfo;Swift
func onMapClickedSwigExplicitMSFMapEventListener(_ mapClickInfo: MSFMapClickInfo!)Parameters
mapClickInfoA container that provides information about the click.
-
Undocumented
Declaration
Objective-C
-(id)init;Swift
init!() -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()