public class SystemSettings extends Object
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
SystemSettings.Date |
Provides methods for setting time and date formats.
|
static class |
SystemSettings.Display |
Provides methods for setting the display effect, including the font size, screen brightness, screen rotation,
animation factor, and display color.
|
static class |
SystemSettings.General |
Provides methods for setting general information about devices, including the device name, startup wizard,
airplane mode, debugging information, accessibility feature switch, and touch exploration status.
|
static class |
SystemSettings.Input |
Provides methods for setting information about input methods, including automatic capitalization, automatic
punctuation, autocorrect, password presentation, input method engine, and input method subtypes.
|
static class |
SystemSettings.Network |
Provides methods for setting network information, including the data roaming status, HTTP proxy configurations,
and preferred networks.
|
static class |
SystemSettings.Phone |
Provides methods for setting the answering mode of incoming and outgoing calls.
|
static class |
SystemSettings.Sound |
Provides methods for setting the sound effect, including the ringtone, dial tone, alarm sound, notification tone,
and haptic feedback.
|
static class |
SystemSettings.TTS |
Provides methods for setting information about text-to-speech (TTS) conversion, including the pitch, speech rate,
engine, and plug-ins.
|
static class |
SystemSettings.Wireless |
Provides methods for setting radio network information, including information about Bluetooth, Wi-Fi, Near Field
Communication (NFC), and the airplane mode.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Uri |
getUri(String name) |
Constructs a URI for a specific name-value pair for monitoring data of the ability that uses the Data
template.
|
static String |
getValue(DataAbilityHelper dataAbilityHelper,
String name) |
Obtains the value of a specified character string in the database.
|
static boolean |
setValue(DataAbilityHelper dataAbilityHelper,
String name,
String value) |
Saves a character string name and its value to the database.
|
public static Uri getUri(String name)
name - Indicates the name of the setting to set.null if the URI does not exist.public static String getValue(DataAbilityHelper dataAbilityHelper, String name)
dataAbilityHelper - Indicates the DataAbilityHelper used to access
the database.name - Indicates the name of the character string.null
otherwise.public static boolean setValue(DataAbilityHelper dataAbilityHelper, String name, String value)
dataAbilityHelper - Indicates the DataAbilityHelper used to access
the database.name - Indicates the name of the character string.value - Indicates the value of the character string.true if the operation is successful; returns false otherwise.