NSLog(@"owner:%,%",result.ownerId,result.ownerDispName);[result.buckets enumerateObjectsUsingBlock:^(id_Nonnull obj,NSUInteger idx,BOOL*_Nonnull stop){ NSDictionary*bucketInfo=obj;NSLog(@"BucketName:%",[bucketInfo ...
for(NSDictionary*objectInfo in result.contents){ NSLog(@"list object:%",objectInfo);} } else { NSLog(@"get bucket failed,error:%",task.error);} return nil;}];列举指定前缀的文件 以下代码用于列举examplebucket中以file为前缀的...
[[client putObjectTagging:putTaggingRequest]continueWithBlock:^id_Nullable(OSSTask*_Nonnull task){ if(task.error){ NSLog(@"error:%",task.error);} else { NSLog(@"put tagging success");} return nil;}];拷贝Object时设置对象...
群组id[[[AliVCIMEngine sharedEngine]getGroupManager]listRecentGroupUser:req completed:^(AliVCIMListRecentGroupUserRsp*_Nullable rsp,NSError*_Nullable error){ if(rsp){/成功 NSLog(@"API-listRecentGroupUser rsp:%",rsp);...
switch(device.orientation){ case UIDeviceOrientationFaceUp:NSLog(@"屏幕朝上平躺");break;case UIDeviceOrientationFaceDown:NSLog(@"屏幕朝下平躺");break;case UIDeviceOrientationUnknown:NSLog(@"未知方向");break;case ...
NSLog(@"创建时间:%",result.creationDate);NSLog(@"地域:%",result.location);NSLog(@"类型:%",result.storageClass);NSLog(@"拥有者信息:%",result.owner.userName);NSLog(@"权限:%",result.acl.grant);} else { NSLog(@"get bucket...
本文将结合 扫一扫 官方 Demo 介绍如何使用扫码功能。...}-(void)userTrack:(NSString*)name args:(NSDictionary*)data { NSLog(@"userTrack:%,args:%",name,data);}-(void)scanPhotoFailed {/相册识别失败的回调 NSLog(@"scanPhotoFailed");}
}/*第四步:监听结果回调*/-(void)notifyProvisionResult:(IMLCandDeviceModel*)candDeviceModel withProvisionError:(NSError*)provisionError { NSLog(@"配网结果:%",candDeviceModel);} 蓝牙辅助配网 配网SDK版本。确认Podfile依赖的配...
}/用户引导页(一键配网和热点配网会有相关回调,指引用户接入相关操作)-(void)notifyProvisionPrepare:(LKPUserGuideCode)guideCode { NSLog(@"notifyProvisionPrepare callback guide code:%ld",guideCode);if(guideCode=...
NSLog 日志的开关默认是关闭的,在开启 NSLog 日志记录开关 后,需要重启应用功能才能生效。在启动 NSLog 日志记录开关 后,点击 查看 NSLog,即可查看 NSLog 日志记录。性能监控 性能监控支持对帧率、CPU 占用率、内存占用率进行监控,...
} TTS 合成数据回调/tts合成数据返回-(void)onTTSCallBackwithText:(char*)text word_idx:(int)word_idx buffer:(char*)buffer len:(int)len taskid:(char*)taskid { NSLog(@"TTSCallBack:%s-%d",text,word_idx);[[scollLabelView ...
import初始化SDK[[TXCommonHandler sharedInstance]setAuthSDKInfo:authSDKInfo complete:^(NSDictionary*_Nonnull resultDic){ NSLog(@"设置密钥结果:%",resultDic);}];一键登录 该接口会产生多次回调,授权页的点击事件也通过该回调抛出...
示例代码:#pragma mark-TTDelegate-(void)error:(TTCaptcha*)captcha code:(NSInteger)code message:(nonnull NSString*)message { NSLog(@"captcha error:%ld,%",code,message);}-(void)failed:(TTCaptcha*)captcha code:(nonnull ...
} else { NSLog(@"copy object failed,error:%",task.error);} return nil;}];归档、冷归档类型或者深度冷归档转换为低频访问类型 以下代码用于将examplebucket根目录下名为exampleobject.txt的Object的存储类型从归档、冷归档类型或者深度...
}/通知dismiss,category创建时传入UNNotificationCategoryOptionCustomDismissAction才可以触发 if([userAction isEqualToString:UNNotificationDismissActionIdentifier]){ NSLog(@"User dismissed the notification.");} NSString*...
request.downloadProgress=^(int64_t bytesWritten,int64_t totalBytesWritten,int64_t totalBytesExpectedToWrite){ NSLog(@"%lld,%lld,%lld",bytesWritten,totalBytesWritten,totalBytesExpectedToWrite);};OSSTask*getTask=[client ...
}/资源请求异常 H5_AL_NETWORK_PERFORMANCE_ERROR/复现路径,断网->打开demo后点“跳转小程序->点刷新”else if([seedId isEqualToString:@"H5_AL_NETWORK_PERFORMANCE_ERROR"]){ NSLog(@"seedId:[%]log:[%]",seedId,aplogstr);} }/启动...
NSLog(@"%lld,%lld,%lld",bytesWritten,totalBytesWritten,totalBytesExpectedToWrite);};request.range=[[OSSRange alloc]initWithStart:0 withEnd:99];bytes=0-99,指定范围下载。request.downloadToFileURL=[NSURL fileURLWithPath:@...
bytes=10-request.downloadProgress=^(int64_t bytesWritten,int64_t totalBytesWritten,int64_t totalBytesExpectedToWrite){ NSLog(@"%lld,%lld,%lld",bytesWritten,totalBytesWritten,totalBytesExpectedToWrite);};OSSTask*getTask=...
[_notificationCenter requestAuthorizationWithOptions:UNAuthorizationOptionAlert|UNAuthorizationOptionBadge|UNAuthorizationOptionSound completionHandler:^(BOOL granted,NSError*_Nullable error){ if(granted){/granted NSLog(@...
}/用户引导页(一键配网和热点配网会有相关回调,指引用户接入相关操作)-(void)notifyProvisionPrepare:(LKPUserGuideCode)guideCode { NSLog(@"notifyProvisionPrepare callback guide code:%ld",guideCode);if(guideCode=...
(void)initCloudPush {/SDK初始化[CloudPushSDK asyncInit:@"*"appSecret:@"*"callback:^(CloudPushCallbackResult*res){ if(res.success){ NSLog(@"Push SDK init success,deviceId:%.",[CloudPushSDK getDeviceId]);} else { NSLog(@...
for(NSString*key in result.objectMeta){ NSLog(@"ObjectMeta:%-%",key,[result.objectMeta objectForKey:key]);} } else { NSLog(@"head object failed,error:%",task.error);} return nil;}];相关文档 关于获取文件元数据的API接口说明...
multipartUploadRequest.uploadProgress=^(int64_t bytesSent,int64_t totalByteSent,int64_t totalBytesExpectedToSend){ NSLog(@"progress:%lld,%lld,%lld",bytesSent,totalByteSent,totalBytesExpectedToSend);};multipartUploadRequest...
} else { NSLog(@"put symlink failed,error:%",task.error);} return nil;}];获取软链接 获取软链接要求您对该软链接具有读权限。以下代码用于获取examplebucket存储空间中软链接examplesymlink指向的目标文件名称。OSSGetSymlinkRequest*...
NSURLSessionTask*sessionTask=[session dataTaskWithRequest:request completionHandler:^(NSData*_Nullable data,NSURLResponse*_Nullable response,NSError*_Nullable error){ if(error){ NSLog(@"download error:%",error);return;} ...
}-(NSString*)fetchImage:(NSString*)url size:(CGSize)size option:(NSDictionary*)option callback:(CKImageHandlerCallback)callback { NSLog(@"图片地址:%",url);NSLog(@"图片扩展参数:%",option);return@"20211202;}
import<ALBBOpenAccountCloud/ALBBOpenAccountSDK.h>#import[ALBBService(ALBBOpenAccountService)updateAccountProfile:@{@"avatarUrl":url} Callback:^(NSError*error){ if(error=nil){ NSLog(@"modify photo image successfully");...
NSLog(@"%lld,%lld,%lld",bytesWritten,totalBytesWritten,totalBytesExpectedToWrite);};OSSTask*getTask=[client getObject:request];[getTask continueWithBlock:^id(OSSTask*task){ if!task.error){ NSLog(@"download object success!...
OSS iOS SDK提供了方便的同步接口以检测Bucket中是否存在指定的文件。示例代码 以下代码用于判断指定文件是否存在。...error){ if(isExist){ NSLog(@"File exists.");} else { NSLog(@"File not exists.");} } else { NSLog(@"Error!}
NSLog(@"%lld,%lld,%lld",bytesSent,totalByteSent,totalBytesExpectedToSend);};OSSTask*putTask=[client putObject:put];[putTask continueWithBlock:^id(OSSTask*task){ if!task.error){ NSLog(@"upload object success!} else { ...
[CloudPushSDK registerDevice:deviceToken withCallback:^(CloudPushCallbackResult*res){ if(res.success){ NSLog(@"Register deviceToken success,deviceToken:%",[CloudPushSDK getApnsDeviceToken]);} else { NSLog(@"Register ...
[[AliTigerTally sharedInstance]initialize:@"*OpKLvM6zliu6KopyHIhmneb_*u4ekci2W8i6F9vrgpEezqAzEzj2ANrVUhvAXMwYzgY_*vc51aEQlRovkRoUhRlVsf4IzO9dZp6nN_*Wz8pk2TDLuMo4pVIQvGaxH3vrsnSQiK*"]){ NSLog(@"初始化失败");return;} ...
request.onRecieveData=^(NSData*data){ NSLog(@"Recieve data,length:%ld",[data length]);};OSSTask*getTask=[client getObject:request];[getTask continueWithBlock:^id(OSSTask*task){ if!task.error){ NSLog(@"download object ...
pragma mark-AliyunAETemplateRenderDelegate-(void)templateRenderStarted { NSLog(@"templage render started");}-(void)templateRenderFinished:(NSURL*)outputUrl { NSLog(@"templage render completed");}-(void)...
NSLog(@"%lld,%lld,%lld",bytesSent,totalByteSent,totalBytesExpectedToSend);};OSSTask*putTask=[client putObject:put];[putTask continueWithBlock:^id(OSSTask*task){ if!task.error){ NSLog(@"upload object success!} else { ...
pragma mark-AliyunAETemplateRenderDelegate-(void)templateRenderStarted { NSLog(@"templage render started");}-(void)templateRenderFinished:(NSURL*)outputUrl { NSLog(@"templage render completed");}-(void)...
}/录制达到最大录制时长而停止,可以结束录制-(void)recorderDidStopWithMaxDuration { NSLog(@"Mix Record Stop Recording With Max Duration");[self.aliyunMixRecorder finishRecording];完成录制 }/录制完成-(void)...
append.uploadProgress=^(int64_t bytesSent,int64_t totalByteSent,int64_t totalBytesExpectedToSend){ NSLog(@"%lld,%lld,%lld",bytesSent,totalByteSent,totalBytesExpectedToSend);};append.contentType=";append.contentMd5=";append...
setup callback OnUploadFinishedListener FinishCallbackFunc=^(UploadFileInfo*fileInfo,VodUploadResult*result){ NSLog(@"upload finished callback videoid:%,imageurl:%",result.videoId,result.imageUrl);};OnUploadFailedListener ...