| Class info |
| public class Drive extends AbstractJsonClient |
| 华为Drive服务实现类,负责管理云端硬盘中的文件,包括上传,下载,搜索,检测更改等。 |
| Type | Name | Desc |
| class | Drive.About | Drive.About类声明。 |
| class | Drive.Changes | Drive.Changes类声明。 |
| class | Drive.Files | Drive.Files类声明。 |
| class | Drive.Channels | Drive.Channels类声明。 |
| static class | Drive.Builder | Drive类对象构造类。 |
| class | Drive.Comments | Drive. Comments类声明。 |
| class | Drive.Replies | Drive. Replies类声明。 |
| Constructor name |
| Drive(DriveCredential credential, Context context) Drive构造方法。 |
| Constructor name |
| Drive(Builder builder) Drive构造方法。 |
| Return type | Method name |
| Drive.About | about() 获取封装About接口请求的访问对象。 |
| Drive.Changes | changes() 获取创建Changes请求方法的访问对象。 |
| Drive.Channels | channels() 获取Channels方法请求的访问对象。 |
| Drive.Files | files() 获取Files请求的访问对象。 |
| Drive.Comments | comments() 获取Comments方法请求的访问对象。 |
| Drive.Replies | replies() 获取评论回复Replies请求的访问对象。 |
| Return type | Method name |
| void | initialize(AbstractClientRequest<?> httpClientRequest) |
| constructor |
| public Drive(DriveCredential credential, android.content.Context context) |
| 构造一个Drive对象。 |
Parameters
| Parameter name | Parameter desc |
| credential | DriveCredential对象,设备凭证,包含用户ID,国家/地区代码等信息。 |
| context | 应用上下文。 |
| constructor |
| protected Drive(Builder builder) |
| 构造一个Drive对象。 |
Parameters
| Parameter name | Parameter desc |
| builder | builder构造对象。 |
| Method |
| public Drive.About about() |
| 获取封装Drive.About接口请求的对象。 |
Return
| type | desc |
| Drive.About | 返回一个Drive.About类对象。 |
| Method |
| public Drive.Changes changes() |
| 获取创建Drive.Changes请求方法的访问对象。 |
Return
| type | desc |
| Drive.Changes | 返回一个Drive.Changes类对象。 |
| Method |
| public Drive.Channels channels() |
| 获取Drive.Channels方法请求的访问对象。 |
Return
| type | desc |
| Drive.Channels | 返回一个Drive.Channels类对象。 |
| Method |
| public Drive.Files files() |
| 获取Drive.Files请求的访问对象。 |
Return
| type | desc |
| Drive.Files | 返回一个Drive.Files类对象。 |
| Method |
| public Drive.Comments comments() |
| 获取Drive.Comments方法请求的访问对象。 |
Return
| type | desc |
| Drive.Comments | 返回一个Drive.Comments类对象。 |
| Method |
| public Drive.Replies replies() |
| 获取Drive.Replies请求的访问对象。 |
Return
| type | desc |
| Drive.Replies | 返回一个Drive.Replies类对象。 |
| Method |
| public final BatchRequest batch() |
| 获取Drive批量接口(该方法是父类方法,可直接调用)。 |
Return
| type | desc |
| BatchRequest | 返回批量请求,BatchRequest类对象。 |
| Method |
| protected void initialize(AbstractClientRequest<?> httpClientRequest) |
| 通过ClientRequestInitializer初始化AbstractClientRequest。 |
Parameters
| Parameter name | Parameter desc |
| httpClientRequest | AbstractClientRequest对象。 |
Throws
| Throw name | Throw desc |
| java.io.IOException | 若接口调用异常,会返回IOException。开发者可以通过getMessage方法获取错误描述。 |