SuperMap iMobile for iOS 接口变更 10i(2020) SP2 - 10i(2021)

历史版本接口变更

本文档对相邻两个版本之间可能影响到兼容性的一些接口调整及其他重要影响进行了说明。接口调整的原则是为了用户开发出更高效,功能更强大完善的应用程序。

SuperMap iMobile 10i(2020) SP2 for iOS 到 SuperMap iMobile 10i(2021) for iOS 接口变化列表

变更ID 变更内容说明 所属模块
1.

OnlineServer类

新增接口-(void)downloadFileWithDataUrl:(NSString*)url filePath:(NSString*)filePath;

iserver
2.

SceneControl类

新增接口-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;

新增接口-(instancetype)initWithSession;

新增接口@property(nonatomic) ARSession* sesssion;

新增接口@property(nonatomic) matrix_float4x4 lastAnchorMatrix;

新增接口@property(atomic)BOOL isStartAR;

新增接口@property (nonatomic, readonly, assign) CGSize sceneSize;

新增接口- (void)initSceneControl:(UIViewController *)viewControl windows:(UIWindow*)win type:(SceneTypeMode)type;;

取消接口-(instancetype)initWithSession;

realspace
3.

新增类AR3DControl

新增接口@interface AR3DControl:NSObject;

新增接口@property(nonatomic) SceneControl* mSceneControl;

新增接口-(instancetype)initWithSceneControl:(SceneControl*) scenecontrol;

新增接口-(void)setARState:(BOOL)value;

新增接口-(void)setSceneRotation:(double)rotX rotY:(double)rotY rotZ:(double)rotZ;

新增接口-(void)setSceneScale:(double)scaleX scaleY:(double)sacleY scaleZ:(double)scaleZ;

新增接口-(void)setSceneTransLation:(double)transX transY:(double)transY transZ:(double)transZ;

新增接口-(void)setLayerRotation:(int)layer3dID rotX:(double)rotX rotY:(double)rotY rotZ:(double)rotZ;

新增接口-(void)setLayerScale:(int)layer3dID scaleX:(double)scaleX scaleY:(double)scaleY scaleZ:(double)scaleZ;

新增接口-(void)setLayerTransLation:(int)layer3dID transX:(double)transX transY:(double)transY transZ:(double)transZ;

新增接口-(instancetype)initWithSceneControl:(SceneControl*) sceneControl session:(ARSession*)session;

realspace
4.

Scene类

新增接口@property(nonatomic,strong)Color* backgroundColor;

realspace
5.

新增类Scene+inner

新增接口-(instancetype)initWithSession:(ARSession*)session;

新增接口-(void)setSceneScale1:(double)scaleX scaleY:(double)sacleY scaleZ:(double)scaleZ;

新增接口-(void)setSceneRotation1:(double)rotationX rotationY:(double)rotationY rotationZ:(double)rotationZ;

新增接口-(void)setSceneTranslation1:(double)transX transY:(double)transY transZ:(double)transZ;

新增接口-(void)setLayerRotation1:(int)layer3dID rotX:(double)rotX rotY:(double)rotY rotZ:(double)rotZ;

新增接口-(void)setLayerScale1:(int)layer3dID scaleX:(double)scaleX scaleY:(double)scaleY scaleZ:(double)scaleZ;

新增接口-(void)setLayerTransLation1:(int)layer3dID transX:(double)transX transY:(double)transY transZ:(double)transZ;

realspace
6.

TrackingLayer类

新增接口- (void)setAsyncRefresh:(BOOL)isAsync;

mapping