说明 预置接入的对象一般为 ViewController 的子类,该对象必须实现 PromotionCenterDelegate 方法。UI 接入 添加协议实现。ViewController 对象实现投放的协议 PromotionCenterDelegate。interface DemoViewController()...
[[ViewController getInstance]presentViewController:nav animated:YES completion:nil];[viewController setCloseBlock:^(UIViewController*aParentController){[aParentController dismissViewControllerAnimated:YES completion:nil];}...
(void)loginViewDidLoad:(ALBBOpenAccountLoginViewController*)viewController{ viewController.navigationItem.rightBarButtonItem=[[UIBarButtonItem alloc]initWithTitle:@"login"style:UIBarButtonItemStyleDone target:nil action:...
屏幕类WVScreen的JS API提供设置、返回当前Activity/ViewController的显示方向(横屏/竖屏)、设置屏幕亮度、获取屏幕亮度的能力。WVScreen.getOrientation 返回当前Activity/ViewController的显示方向(横屏/竖屏)。输入参数 无输入参数...
(void)startByNativeWithVerifyToken:(NSString*)verifyToken viewController:(UIViewController*)viewController transitionStyle:(RPTransitionStyle)transitionStyle progress:(RPProgress_Nullable)progress completion:(RPCompletion_...
(void)startByNativeWithVerifyToken:(NSString*)verifyToken viewController:(UIViewController*)viewController transitionStyle:(RPTransitionStyle)transitionStyle progress:(RPProgress_Nullable)progress completion:(RPCompletion_...
(void)loginViewDidLoad:(ALBBOpenAccountLoginViewController*)viewController { viewController.usernameField.placeholder="xxx;自行取资源赋值 viewController.usernameLabel.text="xxx;自行取资源赋值 } 自定义UI 请参见 定制iOS App...
ViewController 通常为 Launcher 微应用的 rootViewController,如果是 TabBarController,则为第一个 tab 所在的 ViewController。implementation HomeViewController-(void)viewDidLoad {[super viewDidLoad];}-(void)viewDidAppear:...
与View或ViewController交互 JSBridge中允许与View(包括WebView)或ViewController交互,以实现某些特殊逻辑。或者检查ViewController是否具有特定的类型,以实现只允许在某类ViewController中调用的私有JSBridge。不允许对View或...
自定义多国语言指的是开发者...(void)loginViewDidLoad:(ALBBOpenAccountLoginViewController*)viewController { viewController.usernameField.placeholder="xxx;自行取资源赋值 viewController.usernameLabel.text="xxx;自行取资源赋值 }
Step8 打开反馈页面 调用 YWFeedbackKit 实例如下接口创建反馈界面:/brief 创建反馈页面回调Block/params viewController 反馈页面/return error 调用失败返回错误 typedef void(^YWMakeFeedbackViewControllerCompletionBlock)...
配置约定的方法 CK_EXPORT_METHOD(@selector(push:))-(void)push:(CubeModuleMethodCallback)callback { if(callback){/此处执行Push ViewController操作/回调给模板的参数 callback(@"Push Page");} }@end 注册自定义 Module。(void)...
导航栏结构 如下图所示,基于 mPaaS 框架创建的应用,默认的 UI 结构为:window/navigationController>tabViewController>每个 tab 嵌入一个 viewController。即应用主 window 的根应用是一个 UINavigationController 的对象,...
(void)startWithViewController:(UIViewController*)viewController configuration:(AGNConfiguration*)configuration completion:(AGNCompletion_Nullable)completion;SDK包体积优化 从实人认证控制台下载到的SDK默认包含了所有算法模型,...
(void)faceDetectWithCertifyId:(NSString*)certifyId withCurrentViewController:(UIViewController*)viewController withExtParams:(NSDictionary*)extParams complete:(AliyunIdentityVerifyBlock)completeBlock;调用参数说明:名称 ...
(void)faceCompareWithCertifyId:(NSString*)certifyId withCurrentViewController:(UIViewController*)viewController withExtParams:(NSDictionary*)extParams complete:(AliyunIdentityVerifyBlock)completeBlock;调用参数说明:名称 ...
(void)faceVerifyWithCertifyId:(NSString*)certifyId withCurrentViewController:(UIViewController*)viewController withExtParams:(NSDictionary*)extParams complete:(AliyunIdentityVerifyBlock)completeBlock;调用参数说明:名称 ...
自定义继承 TBScanViewController 的 ViewController#import<UIKit/UIKit.h>NS_ASSUME_NONNULL_BEGIN@interface MPScanCodeViewController:TBScanViewController<TBScanViewControllerDelegate>@end NS_ASSUME_NONNULL_END 初始化自定义扫...
define captchaID@"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"@interface ViewController()<AlicomCaptcha4SessionTaskDelegate>@property(strong,nonatomic)IBOutlet UIButton*startBtn;property(nonatomic,strong)AlicomCaptcha4Session*...
SDK解压后获取Demo,找到 ViewController.m 文件,请将替换为您的方案号。步骤三:设置参数 找到 ViewController.m,将 updateTokenWithVerifyCodeManager:回调方法的参数设置为您的信息。如:、、、、等。示例代码 初始化示例对象 self....
PlayList SimplePlayerViewController 直播时移 TimeShift AlivcVideoPlayTimeShiftViewController 在工程首页ViewController中执行跳转到相应的UI功能代码入口ViewController中。如 视频播放 界面跳转逻辑如下:#import...
基于 URL 创建 vc MPH5WebViewController*vc=(MPH5WebViewController*)[[MPNebulaAdapterInterface shareInstance]createH5ViewController:@{@"url":@"https://example.com/products/xxx"}];重要 URL 要进行精准匹配,至少要匹配到 URI 类...
获取当前小程序页面所在的 viewController,调用 callHandler 方法发送事件。[self callHandler:@"nativeToTiny"data:@{@"key":@"value"} responseCallback:^(id responseData){ }];参数说明:参数 说明 handlerName 小程序端监听的事件...
示例代码包括以下内容:GitHub源码 说明 ViewController.swift 基于swift语言,配置的日志采集相关示例。ProducerExampleNoCacheController.m 基于Objective-C语言,不带缓存配置的日志采集相关示例。ProducerExampleController.m 基于...
将AliRTCSdk.framework设置动态库,如下所示:打开 ViewController.m 文件,配置鉴权信息AliRtcAuthInfo(在 sureButtonClick 方法中)。NSString*AppID="aoe*;NSString*userID="f303d*;NSString*channelID="23*;NSString*nonce="AK-7c8f...
interface ViewController()<DingRtcEngineDelegate>@property(nonatomic,strong)DingRtcEngine*engine;end self.engine=[DingRtcEngine sharedInstance:self extras:@""];本地预览。在创建完DingRtcEngine实例后,您可以创建canvas布局...
interface ViewController()<DingRtcEngineDelegate>@property(nonatomic,strong)DingRtcEngine*engine;end self.engine=[DingRtcEngine sharedInstance:self extras:@""];本地预览。在创建完DingRtcEngine实例后,您可以创建canvas布局...
获取当前小程序页面所在的 viewController,调用 callHandler 方法发送事件。[self callHandler:@"nativeToTiny"data:@{@"key":@"value"} responseCallback:^(id responseData){ }];取消注册的方法如下:on.remove();on=undefined;参数说明...
获取当前小程序页面所在的 viewController,调用 callHandler 方法发送事件。[self callHandler:@"nativeToTiny"data:@{@"key":@"value"} responseCallback:^(id responseData){ }];参数说明:参数 说明 handlerName 小程序端监听的事件...
interface ViewController()<AliRtcEngineDelegate>@property(nonatomic,strong)AliRtcEngine*engine;end 回调详情请参见 回调及监听。self.engine=[AliRtcEngine sharedInstance:self extras:@""];说明 目前暂不支持多实例。本地预览。在...
interface ViewController()<AliRtcEngineDelegate>@property(nonatomic,strong)AliRtcEngine*engine;end Mac回调详情请参见 回调及监听。self.engine=[AliRtcEngine sharedInstance:self extras:@""];说明 目前暂不支持多实例。本地预览。...
interface ViewController()<AliRtcEngineDelegate>@property(nonatomic,strong)AliRtcEngine*engine;end self.engine=[AliRtcEngine sharedInstance:self extras:@""];本地预览。在创建完AliRtcEngine实例后,您可以创建canvas布局进行...
interface ViewController()<AliRtcEngineDelegate>@property(nonatomic,strong)AliRtcEngine*engine;end self.engine=[AliRtcEngine sharedInstance:self extras:@""];本地预览。在创建完AliRtcEngine实例后,您可以创建canvas布局进行...
Y Y 屏幕 名称 功能说明 Android iOS WVScreen.getOrientation 返回当前Activity/ViewController的显示方向(横屏/竖屏)。Y Y WVScreen.setOrientation 设置当前ViewController/Activity的显示方向(横屏/竖屏)。Y Y WVScreen....
Y“”keep String 是否在 ViewController 的生命周期内一直监听该通知。N“true”fn Function 回调函数。N-出参 result:{}:回调函数带入的参数,对应为事件的消息。错误码 错误码 描述 4 无权限调用 12 在一个页面中多次监听同名通知
用户也可以设置可选的操作来设置首ViewController来明确首页面,保证正确的监控冷启动首页面的加载耗时。相关的API如下:+(void)setRootVCCls:(Class)cls;在DidFinishLaunching第一句代码提前设置RootViewController 注意:如果没有设置,...
extParams NSDictionary 通过以下代码传入当前 viewController,用于展现网络加载和 presentViewController。[extParams setValue:self forKey:@"currentCtr"];返回结果说明:response.code 包含以下返回参数,具体说明如下表所示。错误码 ...
currentViewController UIViewController 当前调用SDK的viewController,用于SDK内部UI展示。extParams NSDictionary 业务方对SDK内部相关UI的定制参数,可以为空。支持自定义的字段,具体如下:kIdentityParamKeyShowResult:@"YES",/定义...
如果未设置页面名称时,安卓默认取Activity的名称,Ios默认取ViewController的名称 arg1 string 事件参数,事件ID为1010时为上次启动的前台停留时间,单位毫秒 arg2 string 事件参数,事件ID为1010时为此次启动之前的后台停留时间,单位...
在需要使用推流器的ViewController中引用头文件#import,示例代码如下:/初始化推流配置类,也可使用initWithResolution来初始化 AlivcLivePushConfig*config=[[AlivcLivePushConfig alloc]init];默认为540P,最大支持720P config....