Added in API level 36
GetValueResult.Builder
public
static
final
class
GetValueResult.Builder
extends Object
| java.lang.Object | |
| ↳ | android.service.settings.preferences.GetValueResult.Builder |
Builder to construct GetValueResult.
Summary
Public constructors | |
|---|---|
Builder(int resultCode)
Create Builder instance. |
|
Public methods | |
|---|---|
GetValueResult
|
build()
Constructs an immutable |
GetValueResult.Builder
|
setMetadata(SettingsPreferenceMetadata metadata)
Sets the metadata on the result. |
GetValueResult.Builder
|
setValue(SettingsPreferenceValue value)
Sets the preference value on the result. |
Inherited methods | |
|---|---|
Public constructors
Builder
Added in API level 36
public Builder (int resultCode)
Create Builder instance.
| Parameters | |
|---|---|
resultCode |
int: indicates status of the request
Value is GetValueResult.RESULT_OK, GetValueResult.RESULT_UNSUPPORTED, GetValueResult.RESULT_UNAVAILABLE, GetValueResult.RESULT_REQUIRE_APP_PERMISSION, GetValueResult.RESULT_DISALLOW, GetValueResult.RESULT_INVALID_REQUEST, or GetValueResult.RESULT_INTERNAL_ERROR |
Public methods
build
Added in API level 36
public GetValueResult build ()
Constructs an immutable GetValueResult object.
| Returns | |
|---|---|
GetValueResult |
|
setMetadata
Added in API level 36
public GetValueResult.Builder setMetadata (SettingsPreferenceMetadata metadata)
Sets the metadata on the result.
| Parameters | |
|---|---|
metadata |
SettingsPreferenceMetadata |
| Returns | |
|---|---|
GetValueResult.Builder |
|
setValue
Added in API level 36
public GetValueResult.Builder setValue (SettingsPreferenceValue value)
Sets the preference value on the result.
| Parameters | |
|---|---|
value |
SettingsPreferenceValue |
| Returns | |
|---|---|
GetValueResult.Builder |
|