目录

InformationController.Builder

Class Info

public static final classInformationController.Builder

Builder of a privacy information collection controller.

Public Constructor Summary

Constructor name

Builder()

Builds a privacy information collection controller.

Public Method Summary

Qualifier and Type

Method Name and Description

InformationController

build()

Builds an InformationController object.

InformationController.Builder

setUseWifi(Boolean useWifi)

Sets whether to collect Wi-Fi information.

InformationController.Builder

setUseBluetooth(Boolean useBluetooth)

Sets whether to collect Bluetooth information.

InformationController.Builder

setUseAndroidId(Boolean useAndroidId)

Sets whether to collect the Android ID.

InformationController.Builder

setUseMemorySize(Boolean useMemorySize)

Sets whether to collect device memory information.

Public Constructors

[h2]Builder

Constructor

public Builder()

Builds a privacy information collection controller.

Public Methods

[h2]build

Method

public final InformationController build()

Builds an InformationController object.

Returns

Type

Description

InformationController

An InformationController object.

[h2]setUseWifi

Method

public Builder setUseWifi(Boolean useWifi)

Sets whether to collect Wi-Fi information.

Parameters

Name

Description

useWifi

Indicates whether to collect Wi-Fi information. (Wi-Fi information will be collected by default if this parameter is not set.)

Returns

Type

Description

InformationController.Builder

InformationController builder.

[h2]setUseBluetooth

Method

public Builder setUseBluetooth(Boolean useBluetooth)

Sets whether to collect Bluetooth information.

Parameters

Name

Description

useBluetooth

Indicates whether to collect Bluetooth information. (Bluetooth information will be collected by default if this parameter is not set.)

Returns

Type

Description

InformationController.Builder

InformationController builder.

[h2]setUseAndroidId

Method

public Builder setUseAndroidId(Boolean useAndroidId)

Sets whether to collect the Android ID.

Parameters

Name

Description

useAndroidId

Indicates whether to collect the Android ID. (The Android ID will be collected by default if this parameter is not set.)

Returns

Type

Description

InformationController.Builder

InformationController builder.

[h2]setUseMemorySize

Method

public Builder setUseMemorySize(Boolean useMemorySize)

Sets whether to collect device memory information.

Parameters

Name

Description

useMemorySize

Indicates whether to collect device memory information. (Device memory information will be collected by default if this parameter is not set.)

Returns

Type

Description

InformationController.Builder

InformationController builder.