TTTrackingObject
Objective-C
@interface TTTrackingObject : NSObject <TTPositionUpdate>
Swift
class TTTrackingObject : NSObject, TTPositionUpdate
Base class defining tracking object indicator that can be added to the map. When new location is set, animation is used to move the tracking object. BETA
-
Creates a tracking object with the specified view.
Declaration
Objective-C
- (instancetype _Nonnull)initTrackingObjectType:(TTTrackingObjectType)type withNormalIcon:(id)normalIcon withDimmedIcon:(id)dimmedIcon;Swift
init(trackingObjectType type: TTTrackingObjectType, withNormalIcon normalIcon: Any!, withDimmedIcon dimmedIcon: Any!)Parameters
typedetermines type of tracking object
normalIconThe icon for normal state.
dimmedIconThe icon for dimmed state e.g. (No GPS for Location Manager).
Return Value
TTTrackingObject
-
Update postion of object
Declaration
Objective-C
- (void)setLocation:(CLLocationCoordinate2D)coordinate withRadius:(double)radius withAccuracy:(double)accuracy isDimmed:(BOOL)isDimmed;Swift
func setLocation(_ coordinate: CLLocationCoordinate2D, withRadius radius: Double, withAccuracy accuracy: Double, isDimmed: Bool)Parameters
coordinateThe latitude and longitude.
radiusThe radius that defines the geographic area’s.
accuracyThe accuracy value.
isDimmedThe dimmed value.
-
Update postion of object
Declaration
Objective-C
- (void)setLocation:(CLLocationCoordinate2D)coordinate withRadius:(double)radius withBearing:(double)bearing withAccuracy:(double)accuracy isDimmed:(BOOL)isDimmed;Swift
func setLocation(_ coordinate: CLLocationCoordinate2D, withRadius radius: Double, withBearing bearing: Double, withAccuracy accuracy: Double, isDimmed: Bool)Parameters
coordinateThe latitude and longitude.
radiusThe radius that defines the geographic area’s.
bearingThe bearing value.
accuracyThe accuracy value.
isDimmedThe dimmed value.
-
Update bearing
Declaration
Objective-C
- (void)setBearing:(double)bearing;Swift
func setBearing(_ bearing: Double)Parameters
bearingThe bearing value.
-
Updates the color of the accuracy indicator area.
Declaration
Objective-C
- (void)setGpsRadiusAreaColor:(id)areaColor;Swift
func setGpsRadiusAreaColor(_ areaColor: Any!)Parameters
areaColorColor of the accuracy indicator area.
-
Updates dimming of the indicator.
Declaration
Objective-C
- (void)setDimmed:(BOOL)isDimmed;Swift
func setDimmed(_ isDimmed: Bool)Parameters
isDimmedThe dimmed value.
TTTrackingObject Class Reference