BaiduMap_IOSSDK_v7.0.0_Docs 7.0.0

BMKWalkCycleTrafficLightData.h
浏览该文件的文档.
1 //
2 // BMKWalkCycleTrafficLightData.h
3 // BaiduMapAPI_WalkNavi
4 //
5 // Created by zhaoxiangru on 2025/5/8.
6 // Copyright © 2025 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 NS_ASSUME_NONNULL_BEGIN
12 @class BMKWalkCycleTrafficLightStatus;
13
14 typedef NS_CLOSED_ENUM(NSInteger, BMKWalkCycleTrafficLightRenderType) {
15 BMKWalkCycleTrafficLightRenderTypeUpdate = 0,
16 BMKWalkCycleTrafficLightRenderTypeHiddenPop = 1,
17 BMKWalkCycleTrafficLightRenderTypeHiddenIcon = 2,
18 };
19
20 typedef NS_CLOSED_ENUM(NSInteger, BMKWalkCycleTrafficLightType) {
21 BMKWalkCycleTrafficLightTypeInvalid = 0,
22 BMKWalkCycleTrafficLightTypeSingle = 1,
23 BMKWalkCycleTrafficLightTypeTheFirst = 2,
24 BMKWalkCycleTrafficLightTypeTheSecond = 3,
25 };
26
27 typedef NS_CLOSED_ENUM(NSInteger, BMKWalkCycleTrafficLightPopType) {
28 BMKWalkCycleTrafficLightPopTypeInvalid = 0,
29 BMKWalkCycleTrafficLightPopTypeNormal = 1,
30 BMKWalkCycleTrafficLightPopTypeBig = 2,
31 BMKWalkCycleTrafficLightPopTypeSmall = 3,
32 };
33
34 typedef NS_CLOSED_ENUM(NSInteger, BMKWalkCycleTrafficLightDirectionType) {
35 BMKWalkCycleTrafficLightDirectionTypeInvalid = 0,
36 BMKWalkCycleTrafficLightDirectionTypeStraight = 1,
37 BMKWalkCycleTrafficLightDirectionTypeLeftTurn = 2,
38 };
39
40 typedef NS_CLOSED_ENUM(NSInteger, BMKWalkCycleTrafficLightStatusType) {
41 BMKWalkCycleTrafficLightStatusTypeInvalid = 0,
42 BMKWalkCycleTrafficLightStatusTypeOff = 11,
43 BMKWalkCycleTrafficLightStatusTypeRed = 21,
44 BMKWalkCycleTrafficLightStatusTypeYellow = 22,
45 BMKWalkCycleTrafficLightStatusTypeGreen = 23,
46 };
47
48 @interface BMKWalkCycleTrafficLightData : NSObject
50 @property(nonatomic, assign) BMKWalkCycleTrafficLightRenderType renderType;
52 @property(nonatomic, assign) BMKWalkCycleTrafficLightType lightType;
54 @property(nonatomic, assign) BMKWalkCycleTrafficLightPopType popType;
56 @property(nonatomic, assign) BMKWalkCycleTrafficLightDirectionType direction;
58 @property(nonatomic, strong) NSArray<BMKWalkCycleTrafficLightStatus *> *trafficLightStatusInfos;
59
60 @end
61
62 @interface BMKWalkCycleTrafficLightStatus : NSObject
64 @property(nonatomic, assign) BMKWalkCycleTrafficLightStatusType lightStatus;
66 @property(nonatomic, assign) NSInteger period;
68 @property(nonatomic, assign) NSInteger countDown;
69 @end
70 NS_ASSUME_NONNULL_END
BMKWalkCycleTrafficLightData
Definition: BMKWalkCycleTrafficLightData.h:49
BMKWalkCycleTrafficLightStatus
Definition: BMKWalkCycleTrafficLightData.h:63
BMKWalkCycleTrafficLightData::lightType
BMKWalkCycleTrafficLightType lightType
红绿灯类型
Definition: BMKWalkCycleTrafficLightData.h:52
BMKWalkCycleTrafficLightData::popType
BMKWalkCycleTrafficLightPopType popType
红绿灯气泡类型
Definition: BMKWalkCycleTrafficLightData.h:54
NS_CLOSED_ENUM
typedef NS_CLOSED_ENUM(NSInteger, BMKWalkCycleTrafficLightRenderType)
Definition: BMKWalkCycleTrafficLightData.h:14
BMKWalkCycleTrafficLightData::direction
BMKWalkCycleTrafficLightDirectionType direction
红绿灯方向
Definition: BMKWalkCycleTrafficLightData.h:56
BMKWalkCycleTrafficLightData::renderType
BMKWalkCycleTrafficLightRenderType renderType
红绿灯渲染类型
Definition: BMKWalkCycleTrafficLightData.h:50
BMKWalkCycleTrafficLightData::trafficLightStatusInfos
NSArray< BMKWalkCycleTrafficLightStatus * > * trafficLightStatusInfos
灯态信息,连续N次(<= 3)的红绿灯态数组
Definition: BMKWalkCycleTrafficLightData.h:58