My IMP(低代码音视频工厂)SDK v1.5.0
IMP SDK API Reference Manual for Android Platforms
com.aliyun.roompaas.document.exposable.DocumentService Interface Reference
Inheritance diagram for com.aliyun.roompaas.document.exposable.DocumentService:
com.aliyun.roompaas.base.exposable.PluginService< EH > com.aliyun.roompaas.base.exposable.IEventHandlerManager< EH >

Public Member Functions

void upload (Uri uri, Callback< String > callback)
 
void getUrlList (String docId, Callback< List< String > > urlList)
 
void download (String docId, Callback< InputStream > callback)
 
void convert (String docId, @SupportedConvert.TargetType String type, Callback< Triple< String, String, List< String > > > callback)
 
- Public Member Functions inherited from com.aliyun.roompaas.base.exposable.PluginService< EH >
String getPluginId ()
 
String getInstanceId ()
 
void onLeaveRoom (boolean existPage)
 
void onSyncEvent (RoomNotificationModel model)
 
- Public Member Functions inherited from com.aliyun.roompaas.base.exposable.IEventHandlerManager< EH >
void addEventHandler (EH eventHandler)
 
void removeEventHandler (EH eventHandler)
 
void removeAllEventHandler ()
 

Detailed Description

Created by KyleCe on 2021/12/2

Member Function Documentation

◆ convert()

void com.aliyun.roompaas.document.exposable.DocumentService.convert ( String  docId,
@SupportedConvert.TargetType String  type,
Callback< Triple< String, String, List< String > > >  callback 
)

文档转码

Parameters
docId文档id
type转码类型,支持jpg、png、pdf
callback成功返回转码结果列表,以<源文件docId、目标文件DocId、转码结果urlList> 为 <first、second、third>形式组织

◆ download()

void com.aliyun.roompaas.document.exposable.DocumentService.download ( String  docId,
Callback< InputStream >  callback 
)

依据唯一标识符docId下载文档

Parameters
docIdid标识
callback成功返回文档二进制流

◆ getUrlList()

void com.aliyun.roompaas.document.exposable.DocumentService.getUrlList ( String  docId,
Callback< List< String > >  urlList 
)

根据docId获取文档 url 链接列表

Parameters
docId文档唯一标识
urlList成功返回结果urlList

◆ upload()

void com.aliyun.roompaas.document.exposable.DocumentService.upload ( Uri  uri,
Callback< String >  callback 
)

上传文档

Parameters
uri文档Uri
callback成功返回文档生成的唯一docId标识

The documentation for this interface was generated from the following file: