COSApiFactory class

COSApi工厂类

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

bucketApi COSBucketApi
读取默认的COSBucketApi
no setter
config COSConfig
no setter
objectApi COSObjectApi
读取默认的COSObjectApi
no setter

Static Methods

createApi(Symbol key, COSAbstractApi api) → void
创建Api key 唯一标识 api COSAbstractApi实例
createBucketApi(Symbol key, String bucketName, String region) → void
创建BucketApi key 唯一标识 bucketName 存储桶名称 region 区域信息
createObjectApi(Symbol key, String bucketName, String region) → void
创建Api key 唯一标识 bucketName 存储桶名称 region 区域信息
get<T extends COSAbstractApi>(Symbol key) → T
获取Api key 唯一标识
initialize({required COSConfig config, required String bucketName, required String region}) → void
初始化默认api config cos配置 bucketName 存储桶名称 region 区域信息