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 viewDeclaration
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)
-
Return the current map object
Declaration
Objective-C
- (nonnull SPSmartMapObject *)getMapObject;Swift
func getMapObject() -> SPSmartMapObjectReturn Value
The current map object
-
Return the flag if a marker should be added
Declaration
Objective-C
- (BOOL)shouldAddMarker;Swift
func shouldAddMarker() -> BoolReturn Value
should a marker be added
-
Return the action button text
Declaration
Objective-C
- (nonnull NSString *)getActionButtonText;Swift
func getActionButtonText() -> StringReturn Value
The action button text
-
Return icon name. It should be from the application bundle
Declaration
Objective-C
- (nonnull NSString *)iconName;Swift
func iconName() -> StringReturn Value
icon name
SPSmartMapPOISelectionUserTask Class Reference