1package com.netease.nimlib.sdk.nos;
3import com.netease.nimlib.NimNosSceneKeyConstant;
4import com.netease.nimlib.apt.annotation.NIMService;
5import com.netease.nimlib.sdk.AbortableFuture;
6import com.netease.nimlib.sdk.InvocationFuture;
7import com.netease.nimlib.sdk.NosTokenSceneConfig;
8import com.netease.nimlib.sdk.nos.model.NosThumbParam;
AbortableFuture< String > upload(File file, String mimeType)
使用默认的nos scene NimNosSceneKeyConstant#NIM_DEFAULT_PROFILE上传文件 参考 uploadAtScene(File,...
InvocationFuture< String > getOriginUrlFromShortUrl(String shortUrl)
针对开启了NOS 文件安全功能的用户,可能通过短链获取原始链接,注意保护原始链接不要外泄
String convertDownloadUrlToCDNUrl(String url)
将文件url 转换成CDN 加速url ,如果不支持,返回原链接
AbortableFuture< String > uploadEnableForce(File file, String mimeType, String sceneKey, boolean enableForceUploadFile)
与upload(File, String)功能一样,不过指定了上传文件时用的nos scene 以及是否需要强制重新上传文件
AbortableFuture< Void > downloadFileSecure(String url, String path)
通过安全链接下载文件
AbortableFuture< Void > download(String url, NosThumbParam thumb, String path)
下载文件
InvocationFuture< String > getOriginUrlFromShortUrl(String roomId, String shortUrl)
针对开启了NOS 文件安全功能的用户,可能通过短链获取原始链接,注意保护原始链接不要外泄
AbortableFuture< String > uploadAtScene(File file, String mimeType, String sceneKey)
与upload(File, String)功能一样,不过指定了上传文件时用的nos scene