MSFCustomPopup
A popup with user defined handler. The handler is responsible for drawing the bitmap for the popup and can also respond to touch event.
-
Constructs a CustomPopup object with the specified style and attaches it to a billboard element.
Declaration
Objective-C
- (id)initWithBaseBillboard:(MSFBillboard *)baseBillboard style:(MSFPopupStyle *)style popupHandler:(MSFCustomPopupHandler *)popupHandler;Swift
init!(baseBillboard: MSFBillboard!, style: MSFPopupStyle!, popupHandler: MSFCustomPopupHandler!)Parameters
baseBillboardThe billboard this popup will be attached to.
styleThe style that defines what this popup looks like.
popupHandlerThe handler to use for the popup.
-
Constructs a CustomPopup object from a geometry object and a style.
Declaration
Objective-C
- (id)initWithGeometry:(MSFGeometry *)geometry style:(MSFPopupStyle *)style popupHandler:(MSFCustomPopupHandler *)popupHandler;Swift
init!(geometry: MSFGeometry!, style: MSFPopupStyle!, popupHandler: MSFCustomPopupHandler!)Parameters
geometryThe geometry object that defines the location of this popup.
styleThe style that defines what this popup looks like.
popupHandlerThe handler to use for the popup.
-
Constructs a CustomPopup object from a map position and a style.
Declaration
Objective-C
- (id)initWithPos:(MSFMapPos *)pos style:(MSFPopupStyle *)style popupHandler:(MSFCustomPopupHandler *)popupHandler;Swift
init!(pos: MSFMapPos!, style: MSFPopupStyle!, popupHandler: MSFCustomPopupHandler!)Parameters
posThe map position that defines the location of this popup.
styleThe style that defines what this popup looks like.
popupHandlerThe handler to use for the popup.
-
Returns the handler used for the popup.
Declaration
Objective-C
- (MSFCustomPopupHandler *)getPopupHandler;Swift
func getHandler() -> MSFCustomPopupHandler!Return Value
The popup handler responsible for drawing the popup and handling click events.
-
Undocumented
Declaration
Objective-C
- (BOOL)processClick:(MSFClickInfo *)clickInfo clickPos:(MSFMapPos *)clickPos elementClickPos:(MSFScreenPos *)elementClickPos;Swift
func processClick(_ clickInfo: MSFClickInfo!, click clickPos: MSFMapPos!, elementClick elementClickPos: MSFScreenPos!) -> Bool -
Undocumented
Declaration
Objective-C
- (MSFBitmap *)drawBitmap:(MSFScreenPos *)anchorScreenPos screenWidth:(float)screenWidth screenHeight:(float)screenHeight dpToPX:(float)dpToPX;Swift
func drawBitmap(_ anchorScreenPos: MSFScreenPos!, screenWidth: Float, screenHeight: Float, dpToPX: Float) -> MSFBitmap! -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()