FileIdentification.Builder

java.lang.Object

|---com.huawei.wearengine.p2p.FileIdentification.Builder

public static class FileIdentification.Builder
extends java.lang.Object

It is the internal building class of FileIdentification.

Method Summary

Expand

Modifier and Type

Method and Description

FileIdentification

Builder() FileIdentification constructor.

FileIdentification.Builder

setDescription(java.lang.String description) Sets the description.

FileIdentification.Builder

setFile(File file) Sets the file whose transfer needs to be canceled.

Builder

public Builder()

Since:

API level 5 (SDK 5.0.1.301)

Method Detail

setFile

public FileIdentification.Builder setFile(File file)

It is used to set the file whose transfer needs to be canceled.

Parameters:

Expand

Parameter Name

Parameter Description

file

File whose transfer needs to be canceled.

Returns:

Object built in FileIdentification.

Since:

API level 5 (SDK 5.0.1.301)

setDescription

public FileIdentification.Builder setDescription(java.lang.String description)

It is used to set the description of a file.

Parameters:

Expand

Parameter Name

Parameter Description

description

Description of the file whose transfer needs to be canceled.

Returns:

Object built in FileIdentification.

Since:

API level 5 (SDK 5.0.1.301)

Search
Enter a keyword.