NIMSDK-AOS  10.5.0
NosService.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.nos;
2 
3 import com.netease.nimlib.NimNosSceneKeyConstant;
4 import com.netease.nimlib.apt.annotation.NIMService;
9 
10 import java.io.File;
11 
16 @NIMService("网易云存储服务")
17 public interface NosService {
18 
27  AbortableFuture<String> upload(File file, String mimeType);
28 
37  AbortableFuture<String> uploadAtScene(File file, String mimeType, String sceneKey);
38 
48  AbortableFuture<String> uploadEnableForce(File file, String mimeType, String sceneKey, boolean enableForceUploadFile);
49 
50 
59  AbortableFuture<Void> download(String url, NosThumbParam thumb, String path);
60 
61 
69  AbortableFuture<Void> downloadFileSecure(String url, String path);
70 
71 
78  String convertDownloadUrlToCDNUrl(String url);
79 
80 
87  InvocationFuture<String> getOriginUrlFromShortUrl(String shortUrl);
88 
89 
97  InvocationFuture<String> getOriginUrlFromShortUrl(String roomId, String shortUrl);
98 
99 }
可中断操作的调用跟踪接口。
向NOS请求下载缩略图的参数
SDK nos token场景配置,不配置的话,走默认值,默认值只有以下3种场景: