ResourceService class
Constructors
-
ResourceService(MethodChannel _methodChannel, Map<
String, Handler> handlerMap)
Properties
-
callbacks
↔ Map<
String, dynamic> -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- receiptIdKey → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildArguments<
T> ({Map? arg, Callback< T> ? callback}) → Map<String, dynamic> -
build arguments for methodChannel
inherited
-
convertDownloadUrlToCDNUrl(
{required String url, Callback< String> ? callback}) → Future<void> - 将文件url 转换成CDN 加速url ,如果不支持,返回原链接 roomId 聊天室id shortUrl 短链
-
getOriginUrlFromShortUrl(
{String? roomId, required String shortUrl, Callback< String> ? callback}) → Future<void> - 针对开启了NOS 文件安全功能的用户,可能通过短链获取原始链接,注意保护原始链接不要外泄 roomId 聊天室id shortUrl 短链
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadAtScene(
{required String filePath, String? mimeType, String? sceneKey, bool? forceUpload, Callback< String> ? callback}) → Future<void> - upload file to nos filePath file path mimeType file mimeType sceneKey file upload scene @see : SceneKey forceUpload 如果服务器存在相同的文件,是否强制重新上传文件 ,默认false
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited