BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

载入中...
搜索中...
未找到
BMKRichView.h
浏览该文件的文档.
1//
2// BMKRichView.h
3// MapComponent
4//
5// Created by zhaoxiangru on 2024/3/12.
6// Copyright © 2024 Baidu. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "BMKBaseUIView.h"
11#import "BMKCommonDef.h"
12#import "BMKMapAnimation.h"
13#import "BMKRichUIOption.h"
14NS_ASSUME_NONNULL_BEGIN
15
16@interface BMKRichView : NSObject
17@property (nonatomic, strong) BMKBaseUIView *rootView;
18@property (nonatomic, assign) BMKVisibility visibility;
19@property (nonatomic, assign) float opacity; // [0, 1.0]
20@property (nonatomic, strong, nullable) BMKMapAnimation *animation;
21@property (nonatomic, assign) BMKLocate locate; // The location relative to it's parent marker.
22@property (nonatomic, assign) int offsetX; // 偏离Located 多少point（屏幕坐标系，向左「-」、向右「+」)
23@property (nonatomic, assign) int offsetY; // 偏离Located 多少point（屏幕坐标系，向上「-」、向下「+」)
24// RichView的碰撞避让行为；动画中不支持；BMKCollisionBehavior类型，默认为BMKCollisionNotCollide：不参与;
25@property (nonatomic, assign) BMKCollisionBehavior collisionBehavior;
32// RichView的优先级不能超过其ParentMarker;RichView即使设置为alwaysshow，只要Marker没设置为alwaysshow，RichView的优先级还是会被置为Marker的优先级
33@property (nonatomic, assign) int collisionPriority;
34@property (nonatomic, assign) UIEdgeInsets collisionBorder; // The Collision Border of this view.
35@property (nonatomic, assign) int collisionLineTagId; // 与指定的Line进行避让 [lineTagId == 0 不避让]
36
37@property (nonatomic, assign) float scaleX;
38@property (nonatomic, assign) float scaleY;
39
40@property (nonatomic, strong) NSString *name;
41@property (nonatomic, strong) NSString *tag;
42@property (nonatomic, strong) NSString *descript;
43
49- (void)setPBVisibility:(int)pbVisibility;
50
51// 添加BMKRichUIOption配置参与碰撞避让的UI（BMKBaseUIView，一般为rootView）的可选方位
52- (BOOL)addRichUIOption:(BMKRichUIOption *)richUIOption;
53- (BOOL)delRichUIOption:(BMKRichUIOption *)richUIOption;
54
61- (BOOL)setShowLevel:(int)from toLevel:(int)to;
62
63- (nullable BMKRichView *)findRichViewWithName:(nonnull NSString *)name;
64
65- (nullable BMKRichView *)findViewWithName:(nonnull NSString *)name;
66@end
67
68NS_ASSUME_NONNULL_END
BMKBaseUIView.h
BMKVisibility
BMKVisibility
Definition BMKBaseUIView.h:16
BMKCommonDef.h
BMKLocate
BMKLocate
Definition BMKCommonDef.h:19
BMKCollisionBehavior
BMKCollisionBehavior
Definition BMKCommonDef.h:64
BMKMapAnimation.h
BMKRichUIOption.h
BMKBaseUIView
Definition BMKBaseUIView.h:37
BMKMapAnimation
Definition BMKMapAnimation.h:70
BMKRichUIOption
Definition BMKRichUIOption.h:15
BMKRichView
Definition BMKRichView.h:17
BMKRichView::collisionLineTagId
int collisionLineTagId
Definition BMKRichView.h:35
BMKRichView::scaleX
float scaleX
Definition BMKRichView.h:37
BMKRichView::visibility
BMKVisibility visibility
Definition BMKRichView.h:18
BMKRichView::rootView
BMKBaseUIView * rootView
Definition BMKRichView.h:17
BMKRichView::offsetY
int offsetY
Definition BMKRichView.h:23
BMKRichView::collisionBehavior
BMKCollisionBehavior collisionBehavior
Definition BMKRichView.h:25
BMKRichView::collisionPriority
int collisionPriority
Definition BMKRichView.h:33
BMKRichView::tag
NSString * tag
Definition BMKRichView.h:41
BMKRichView::locate
BMKLocate locate
Definition BMKRichView.h:21
BMKRichView::animation
BMKMapAnimation * animation
Definition BMKRichView.h:20
BMKRichView::offsetX
int offsetX
Definition BMKRichView.h:22
BMKRichView::opacity
float opacity
Definition BMKRichView.h:19
BMKRichView::scaleY
float scaleY
Definition BMKRichView.h:38
BMKRichView::descript
NSString * descript
Definition BMKRichView.h:42
BMKRichView::collisionBorder
UIEdgeInsets collisionBorder
Definition BMKRichView.h:34
BMKRichView::name
NSString * name
Definition BMKRichView.h:40