SPSmartMapPOISelectionUserTask

Objective-C

@interface SPSmartMapPOISelectionUserTask : SPSmartMapUserTask

Swift

class SPSmartMapPOISelectionUserTask : SPSmartMapUserTask

SPSmartMapPOISelectionUserTask class Implementation

  • Custom initialize method for SPSmartMapPOISelectionUserTask

    - - parameter: object The map object that is the target of POISelectionTask
    - parameter: shouldAddMarker Determine if the marker should be added when a POI section task is executed
    - parameter: actionButtonText Custom text that should appear in POI information view
    - parameter: icon The icon name of the button inside POI information view
    

    Declaration

    Objective-C

    - (nonnull instancetype)initWith:(nonnull SPSmartMapObject *)object
                     shouldAddMarker:(BOOL)shouldAddMarker
                    actionButtonText:(nonnull NSString *)actionButtonText
                    actionButtonIcon:(nonnull NSString *)icon;

    Swift

    init(_ object: SPSmartMapObject, shouldAddMarker: Bool, actionButtonText: String, actionButtonIcon icon: String)

Public methods

  • Return the current map object

    Declaration

    Objective-C

    - (nonnull SPSmartMapObject *)getMapObject;

    Swift

    func getMapObject() -> SPSmartMapObject

    Return Value

    The current map object

  • Return the flag if a marker should be added

    Declaration

    Objective-C

    - (BOOL)shouldAddMarker;

    Swift

    func shouldAddMarker() -> Bool

    Return Value

    should a marker be added

  • Return the action button text

    Declaration

    Objective-C

    - (nonnull NSString *)getActionButtonText;

    Swift

    func getActionButtonText() -> String

    Return Value

    The action button text

  • Return icon name. It should be from the application bundle

    Declaration

    Objective-C

    - (nonnull NSString *)iconName;

    Swift

    func iconName() -> String

    Return Value

    icon name