Interface NENosService
-
- All Implemented Interfaces:
-
com.netease.yunxin.kit.roomkit.api.service.NEBaseService
public interface NENosService implements NEBaseService
Nos文件服务
-
-
Method Summary
Modifier and Type Method Description abstract Unit
addFileTransferListener(NEFileTransferListener listener)
添加IM nos上传文件/下载文件传输进度监听器 abstract Unit
removeFileTransferListener(NEFileTransferListener listener)
移除IM nos上传文件/下载文件传输进度监听器 abstract Unit
uploadResource(String filePath, NECallback<String> callback)
上传文件到nos -
-
Method Detail
-
addFileTransferListener
abstract Unit addFileTransferListener(NEFileTransferListener listener)
添加IM nos上传文件/下载文件传输进度监听器
- Parameters:
listener
- 监听器
-
removeFileTransferListener
abstract Unit removeFileTransferListener(NEFileTransferListener listener)
移除IM nos上传文件/下载文件传输进度监听器
- Parameters:
listener
- 监听器
-
uploadResource
abstract Unit uploadResource(String filePath, NECallback<String> callback)
上传文件到nos
- Parameters:
filePath
- 文件路径callback
- 文件上传结果回调,如果成功会返回url
-
-
-
-