文档中心
灵动课堂
API 参考
CloudDriveStore | agora classroom sdk
Edu Store API Reference for Web/Electron
Properties
Protected Readonly classroomStore
Protected Readonly logger
logger: Logger
Methods
_updateProgress
Parameters
resourceUuid: string
Optional progressValue: number
Returns Promise<void>
addPersonalResource
Parameters
Returns Promise<any>
calcResourceUuid
- calcResourceUuid(resource: string | File): Promise<string>
Parameters
Returns Promise<string>
cancelUpload
- cancelUpload(resourceUuid: string): Promise<void>
Parameters
Returns Promise<void>
fetchPersonalResources
Parameters
Returns Promise<{ list: never[]; total: number }>
removePersonalResources
- removePersonalResources(resourceUuids: string[]): Promise<undefined>
Parameters
Returns Promise<undefined>
retryUpload
- retryUpload(resourceUuid: string): void
uploadPersonalResource
- uploadPersonalResource(file: File, progressUuid: string, ext: string, contentType: string, conversion?: Partial<{ canvasVersion: boolean; outputFormat: string; preview: boolean; scale: number; type: string }>): Promise<undefined | { ext: string; resourceName: string; resourceUuid: any; url: string } | { ext?: undefined; resourceName?: undefined; resourceUuid?: undefined; url?: undefined }>
Parameters
file: File
progressUuid: string
ext: string
contentType: string
Optional conversion: Partial<{ canvasVersion: boolean; outputFormat: string; preview: boolean; scale: number; type: string }>
Returns Promise<undefined | { ext: string; resourceName: string; resourceUuid: any; url: string } | { ext?: undefined; resourceName?: undefined; resourceUuid?: undefined; url?: undefined }>
CloudDriveStore
类提供云盘相关能力。