TuSDKCPComponent Class Reference

Inherits from NSObject
Conforms to TuSDKCPComponentErrorDelegate
Declared in TuSDKCPComponent.h

Overview

组件基础类

  sourceController

来源控制器

@property (nonatomic, assign) UIViewController *sourceController

Declared In

TuSDKCPComponent.h

  callbackBlock

组件回调

@property (nonatomic, strong) TuSDKCPComponentBlock callbackBlock

Declared In

TuSDKCPComponent.h

  autoPushViewController

当上一个页面是NavigationController时,是否通过 pushViewController 方式打开编辑器视图 (默认:NO,默认以 presentViewController 方式打开) SDK 内部组件采用了一致的界面设计,会通过 push 方式打开视图。如果用户开启了该选项,在调用时可能会遇到布局不兼容问题,请谨慎处理。

@property (nonatomic) BOOL autoPushViewController

Declared In

TuSDKCPComponent.h

  autoDismissWhenCompelted

是否在组件执行完成后自动关闭组件 (默认:NO)

@property (nonatomic) BOOL autoDismissWhenCompelted

Declared In

TuSDKCPComponent.h

+ initWithSourceController:callbackBlock:

初始化组件

+ (instancetype)initWithSourceController:(UIViewController *)controller callbackBlock:(TuSDKCPComponentBlock)callbackBlock

Parameters

controller

来源控制器

callbackBlock

组件回调结果

Return Value

controller 组件

Declared In

TuSDKCPComponent.h

– showComponent

显示组件

- (void)showComponent

Declared In

TuSDKCPComponent.h

– notifyResult:error:controller:

通知处理结果

- (void)notifyResult:(TuSDKResult *)result error:(NSError *)error controller:(UIViewController *)controller

Parameters

result

返回结果

error

异常信息

controller

最后执行的控制器

Declared In

TuSDKCPComponent.h