TencentNavKit

TNKNaviTrafficBarWidget.h
Go to the documentation of this file.
1//
2// TNKNaviTrafficBarWidget.h
3// TencentNavKit
4//
5// Created by mol on 2019/6/22.
6// Copyright © 2019 Tencent. All rights reserved.
7//
8
9#import <UIKit/UIKit.h>
10#import <TencentNavKit/TNKDriveNavDelegate.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14
18 typedef NS_ENUM(NSUInteger, TNKNaviTrafficBarWidgetOrientation)
19{
20 TNKNaviTrafficBarWidgetOrientationHorizontal = 0,
21 TNKNaviTrafficBarWidgetOrientationVertical = 1,
22};
23
27@interface TNKNaviTrafficBarWidget : UIView<TNKDriveNavDelegate>
28
32@property(nonatomic, assign) TNKNaviTrafficBarWidgetOrientation orientation;
33
37@property (nonatomic, strong) UIColor *borderColor;
38
42@property (nonatomic, assign) CGFloat borderWidth;
43
47@property (nonatomic, assign) CGFloat cornerRadius;
48
53@property (nonatomic, copy) NSDictionary<NSNumber *, UIColor *> *colorConfig;
54
60- (void)setCarIcon:(UIImage *)icon size:(CGSize)size;
61
65@property (nonatomic, assign, getter=isWholeJourney) BOOL wholeJourney;
66
67@end
68
69NS_ASSUME_NONNULL_END
NS_ENUM
NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, TNKNaviTrafficBarWidgetOrientation)
路况光柱图展示方向
Definition: TNKNaviTrafficBarWidget.h:18
TNKNaviTrafficBarWidget
路况光柱图
Definition: TNKNaviTrafficBarWidget.h:27
TNKNaviTrafficBarWidget::orientation
TNKNaviTrafficBarWidgetOrientation orientation
视图展示方向，默认为TNKNaviTrafficBarWidgetOrientationHorizontal
Definition: TNKNaviTrafficBarWidget.h:32
TNKNaviTrafficBarWidget::borderColor
UIColor * borderColor
边框颜色
Definition: TNKNaviTrafficBarWidget.h:37
TNKNaviTrafficBarWidget::colorConfig
NSDictionary< NSNumber *, UIColor * > * colorConfig
交通状态的颜色 例如，@(TNKRouteTrafficDataStatusSmooth): [UIColor greenColor], @(TNKRouteTrafficDataStatusSlow)...
Definition: TNKNaviTrafficBarWidget.h:53
TNKNaviTrafficBarWidget::cornerRadius
CGFloat cornerRadius
圆角半径
Definition: TNKNaviTrafficBarWidget.h:47
TNKNaviTrafficBarWidget::wholeJourney
BOOL wholeJourney
光柱图是否表示全程，默认为YES。全程表示偏航后考虑偏航前行驶的里程，车标不会重新回到光柱图底部。
Definition: TNKNaviTrafficBarWidget.h:65
TNKNaviTrafficBarWidget::borderWidth
CGFloat borderWidth
边框宽度
Definition: TNKNaviTrafficBarWidget.h:42