TTChevronObject

Objective-C

@interface TTChevronObject : TTTrackingObject

Swift

class TTChevronObject : TTTrackingObject

Base class defining chevron 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 chevron tracking object with the specified view.

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithNormalImage:(id)normalImage
                                 withDimmedImage:(id)dimmedImage
                     withChevronAnimationOptions:
                         (TTChevronAnimationOptions *_Nullable)animationOptions;

    Swift

    init(normalImage: Any!, withDimmedImage dimmedImage: Any!, with animationOptions: TTChevronAnimationOptions?)

    Parameters

    normalImage

    The icon for normal state.

    dimmedImage

    The icon for dimmed state.

    animationOptions

    The animation for chevron.

    Return Value

    TTChevronObject

  • TTChevronAnimationOptions object for Chevron.

    Declaration

    Objective-C

    @property (nonatomic) TTChevronAnimationOptions *_Nullable animationOptions;

    Swift

    var animationOptions: TTChevronAnimationOptions? { get set }
  • Determines if accuracy radius circle is displayed arroud tracking object icon. If set to NO accuracy and radius from TTLocation will be ignored. By default set to NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL showsAccuracyRadiusIfAvailable;

    Swift

    var showsAccuracyRadiusIfAvailable: Bool { get set }
  • Default normal image for Chevron.

    Declaration

    Objective-C

    + (id)defaultNormalImage;

    Swift

    class func defaultNormalImage() -> Any!

    Return Value

    UIImage.

  • Default dimmed image for Chevron.

    Declaration

    Objective-C

    + (id)defaultDimmedImage;

    Swift

    class func defaultDimmedImage() -> Any!

    Return Value

    UIImage.