SPLiveMapConfig
Objective-C
@interface SPLiveMapConfig : NSObject
Swift
class SPLiveMapConfig : NSObject
SPLiveMapConfig
Use this class to configure SPMapView settings to show live users on the map. You can define when and how often live user locations are fetched from Steerpath Live Service.
-
If you enable this, the map will show this device as a live user. Most of the time you do not want to show your own device on your own map as a live user and should not change the default value here. Why? Because you will already have a blue dot visible on the map at your device location.
By default false, it’s recommended you don’t change this unless you’re hiding your own blue dot.
Declaration
Objective-C
@property (nonatomic) BOOL showsThisDevice;
Swift
var showsThisDevice: Bool { get set }
-
Deprecated
Use ‘groups’ property instead
Deprecated. Use ‘groups’ parameter instead.
Declaration
Objective-C
@property (nonatomic, strong) __deprecated_msg("Use 'groups' property instead") NSString *group;
Swift
var group: String { get set }
-
Required
List of group identifiers used to filter users on the map. This defines the visible live user groups on the map. You can show one or more groups.
Note that the array can not be empty and you must set this value if you want to see any live users on the map.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSString *> *_Nonnull groups;
Swift
var groups: [String] { get set }
-
Deprecated
This property has been deprecated. You don’t have to use this anymore as the update interval is adjusted by the service.
Deprecated
Declaration
Objective-C
@property (nonatomic) NSTimeInterval updateInterval;
Swift
var updateInterval: TimeInterval { get set }