
/*** @brief 根据scope拉取SDK宿主平台的用户头像和昵称,头像返回UIView,block必须运行在主线程!!!- Pull the user avatar and nickname of the SDK host platform according to the scope. The avatar returns to UIView. The block must run on the main thread!!!*/- (void)fetchAppUserInfoWithScope:(NSString *)scope block:(TMAAppFetchUserInfoBlock)block;
- (void)fetchAppUserInfoWithScope:(NSString *)scope block:(TMAAppFetchUserInfoBlock)block {if (block) {UIImage *defaultAvatar = [UIImage imageWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"avatar.png"]];UIImageView *avatarView = [[UIImageView alloc] initWithImage:defaultAvatar];TMAAppUserInfo *userInfo = [TMAAppUserInfo new];userInfo.avatarView = avatarView;userInfo.nickName = @"SunWukong";block(userInfo);}}
// 定制的UA - Customized UA// @param defaultUserAgent 默认使用的 ua - ua used by default- (NSString *)customUserAgent:(NSString *)defaultUserAgent;
// 扫码调用客户端的扫码模块scancode - Scan the code to call the client's scan code module scancode// @param scanPrams 扫码参数字典 - scan code parameter dictionary// @param navigationController 从那个页面呼起vc - calls vc from that page// @param completionHandler 回调结果 - callback result- (void)scanCode:(NSDictionary *)scanPramsnavigationController:(UINavigationController *)navigationControllercompletionHandler:(MACommonCallback)completionHandler;
// 将Application的生命周期处理透传出来,业务再去处理各自逻辑 - Transparently transmit the application life cycle processing, and the business will process its own logic.// @param appInfo 小程序信息 - The mini program information// @param type 状态 - The state- (void)lifeCycleForApp:(TMFMiniAppInfo *)appInfo type:(TMAAppLifeCycleType)type;
// 基础库更新控制 - Basic library update control// @param libInfo 更新信息 包括version:版本号,url:下载地址,md5:下载文件 md5 - The update information including version: version number, url: download address, md5: download file md5// @return 是否同意更新 - Whether agree to update- (BOOL)canUpdateJSBaseLib:(NSDictionary *)libInfo;
文档反馈