PROTOCOLS
DeviceSettingsManager
Defined in fuchsia.devicesettings/devicesettings.fidl
Manager interface used to manage settings
GetInteger
Request
Name | Type |
---|---|
key |
string
|
Response
Name | Type |
---|---|
val |
int64
|
s |
Status
|
GetString
Request
Name | Type |
---|---|
key |
string
|
Response
Name | Type |
---|---|
val |
string
|
s |
Status
|
SetInteger
Returns false on database error and true on success.
Request
Name | Type |
---|---|
key |
string
|
val |
int64
|
Response
Name | Type |
---|---|
result |
bool
|
SetString
Returns false on database error and true on success.
Request
Name | Type |
---|---|
key |
string
|
val |
string
|
Response
Name | Type |
---|---|
result |
bool
|
Watch
Register a watcher to be called when a setting changes Returns Status::ok, Status::errInvalidSetting or Status::errUnknown
Request
Name | Type |
---|---|
key |
string
|
watcher |
DeviceSettingsWatcher
|
Response
Name | Type |
---|---|
s |
Status
|
DeviceSettingsWatcher
Defined in fuchsia.devicesettings/devicesettings.fidl
A watcher for device settings changes
OnChangeSettings
Request
Name | Type |
---|---|
type |
ValueType
|
STRUCTS
ENUMS
Status
Type: uint8
Defined in fuchsia.devicesettings/devicesettings.fidl
Name | Value | Description |
---|---|---|
ok |
1 |
|
errNotSet |
2 |
|
errInvalidSetting |
3 |
|
errRead |
4 |
|
errIncorrectType |
5 |
|
errUnknown |
6 |
ValueType
Type: uint8
Defined in fuchsia.devicesettings/devicesettings.fidl
Name | Value | Description |
---|---|---|
number |
1 |
|
text |
2 |