Added in API level 36

Builder


class Builder
kotlin.Any
   ↳ android.service.settings.preferences.GetValueResult.Builder

Builder to construct GetValueResult.

Summary

Public constructors
Builder(resultCode: Int)

Create Builder instance.

Public methods
GetValueResult

Constructs an immutable GetValueResult object.

GetValueResult.Builder

Sets the metadata on the result.

GetValueResult.Builder

Sets the preference value on the result.

Public constructors

Public methods

build

Added in API level 36
fun build(): GetValueResult

Constructs an immutable GetValueResult object.

setMetadata

Added in API level 36
fun setMetadata(metadata: SettingsPreferenceMetadata?): GetValueResult.Builder

Sets the metadata on the result.

setValue

Added in API level 36
fun setValue(value: SettingsPreferenceValue?): GetValueResult.Builder

Sets the preference value on the result.