Settings.Secure Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Secure system settings, containing system preferences that applications can read but are not allowed to write.
[Android.Runtime.Register("android/provider/Settings$Secure", DoNotGenerateAcw=true)]
public sealed class Settings.Secure : Android.Provider.Settings.NameValueTable
[<Android.Runtime.Register("android/provider/Settings$Secure", DoNotGenerateAcw=true)>]
type Settings.Secure = class
inherit Settings.NameValueTable
- Inheritance
- Attributes
Remarks
Secure system settings, containing system preferences that applications can read but are not allowed to write. These are for preferences that the user must explicitly modify through the UI of a system app. Normal applications cannot modify the secure settings database, either directly or by calling the "put" methods that this class contains.
Java documentation for android.provider.Settings.Secure
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
Settings.Secure() |
Fields
AccessibilityDisplayInversionEnabled |
Setting that specifies whether display color inversion is enabled. |
AccessibilityEnabled |
If accessibility is enabled. |
AccessibilitySpeakPassword |
Whether to speak passwords while in accessibility mode. |
AdbEnabled |
Obsolete.
This member is deprecated. |
AllowedGeolocationOrigins |
Origins for which browsers should allow geolocation by default. |
AllowMockLocation |
Setting to allow mock locations and location provider status to be injected into the LocationManager service for testing purposes during application development. |
AndroidId |
On Android 8. |
BackgroundData |
Obsolete.
Whether background data usage is allowed. |
BluetoothOn |
Obsolete.
This member is deprecated. |
DataRoaming |
Obsolete.
This member is deprecated. |
DefaultInputMethod |
Stores |
DevelopmentSettingsEnabled |
Obsolete.
This member is deprecated. |
DeviceProvisioned |
Obsolete.
This member is deprecated. |
EnabledAccessibilityServices |
List of the enabled accessibility providers. |
EnabledInputMethods |
List of input methods that are currently enabled. |
HttpProxy |
Obsolete.
Host name and port for global http proxy. |
InputMethodSelectorVisibility |
Setting to record the visibility of input method selector |
InstallNonMarketApps |
Whether applications can be installed for this user via the system's
|
LocationMode |
The current location mode of the device. |
LocationModeBatterySaving |
This mode no longer has any distinct meaning, but is interpreted as the location mode is on. |
LocationModeHighAccuracy |
This mode no longer has any distinct meaning, but is interpreted as the location mode is on. |
LocationModeOff |
Location mode is off. |
LocationModeSensorsOnly |
This mode no longer has any distinct meaning, but is interpreted as the location mode is on. |
LocationProvidersAllowed |
Obsolete.
Comma-separated list of location providers that are enabled. |
LockPatternEnabled |
Whether autolock is enabled (0 = false, 1 = true) |
LockPatternTactileFeedbackEnabled |
Obsolete.
Whether lock pattern will vibrate as user enters (0 = false, 1 = true) |
LockPatternVisible |
Whether lock pattern is visible as user enters (0 = false, 1 = true) |
LoggingId |
Obsolete.
The Logging ID (a unique 64-bit value) as a hex string. |
Name | (Inherited from Settings.NameValueTable) |
NetworkPreference |
Obsolete.
This member is deprecated. |
ParentalControlEnabled |
No longer supported. |
ParentalControlLastUpdate |
No longer supported. |
ParentalControlRedirectUrl |
No longer supported. |
RttCallingMode |
User-selected RTT mode. |
SecureFrpMode |
Indicates whether the device is under restricted secure FRP mode. |
SelectedInputMethodSubtype |
Setting to record the input method subtype used by default, holding the ID of the desired method. |
SettingsClassname |
Settings classname to launch when Settings is clicked from All Applications. |
SkipFirstUseHints |
If enabled, apps should try to skip any introductory hints on first launch. |
SysPropSettingVersion | |
TouchExplorationEnabled |
If touch exploration is enabled. |
TtsDefaultCountry |
Obsolete.
Default text-to-speech country. |
TtsDefaultLang |
Obsolete.
Default text-to-speech language. |
TtsDefaultPitch |
Default text-to-speech engine pitch. |
TtsDefaultRate |
Default text-to-speech engine speech rate. |
TtsDefaultSynth |
Default text-to-speech engine. |
TtsDefaultVariant |
Obsolete.
Default text-to-speech locale variant. |
TtsEnabledPlugins |
Space delimited list of plugin packages that are enabled. |
TtsUseDefaults |
Obsolete.
Setting to always use the default text-to-speech settings regardless of the application settings. |
UsbMassStorageEnabled |
Obsolete.
This member is deprecated. |
UseGoogleMail |
Obsolete.
This member is deprecated. |
Value | (Inherited from Settings.NameValueTable) |
WifiMaxDhcpRetryCount |
Obsolete.
This member is deprecated. |
WifiMobileDataTransitionWakelockTimeoutMs |
Obsolete.
This member is deprecated. |
WifiNetworksAvailableNotificationOn |
Obsolete.
This member is deprecated. |
WifiNetworksAvailableRepeatDelay |
Obsolete.
This member is deprecated. |
WifiNumOpenNetworksKept |
Obsolete.
This member is deprecated. |
WifiOn |
Obsolete.
This member is deprecated. |
WifiWatchdogAcceptablePacketLossPercentage |
Obsolete.
The acceptable packet loss percentage (range 0 - 100) before trying another AP on the same network. |
WifiWatchdogApCount |
Obsolete.
The number of access points required for a network in order for the watchdog to monitor it. |
WifiWatchdogBackgroundCheckDelayMs |
Obsolete.
The delay between background checks. |
WifiWatchdogBackgroundCheckEnabled |
Obsolete.
Whether the Wi-Fi watchdog is enabled for background checking even after it thinks the user has connected to a good access point. |
WifiWatchdogBackgroundCheckTimeoutMs |
Obsolete.
The timeout for a background ping |
WifiWatchdogInitialIgnoredPingCount |
Obsolete.
The number of initial pings to perform that may be ignored if they fail. |
WifiWatchdogMaxApChecks |
Obsolete.
The maximum number of access points (per network) to attempt to test. |
WifiWatchdogOn |
Obsolete.
This member is deprecated. |
WifiWatchdogPingCount |
Obsolete.
The number of pings to test if an access point is a good connection. |
WifiWatchdogPingDelayMs |
Obsolete.
The delay between pings. |
WifiWatchdogPingTimeoutMs |
Obsolete.
The timeout per ping. |
WifiWatchdogWatchList |
Obsolete.
A comma-separated list of SSIDs for which the Wi-Fi watchdog should be enabled. |
Properties
Class |
Returns the runtime class of this |
ContentUri |
The content:// style URL for this table |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
PeerReference | (Inherited from Object) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Settings.NameValueTable) |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Settings.NameValueTable) |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetFloat(ContentResolver, String, Single) |
Convenience function for retrieving a single secure settings value as a floating point number. |
GetFloat(ContentResolver, String) |
Convenience function for retrieving a single secure settings value as a float. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetInt(ContentResolver, String, Int32) |
Convenience function for retrieving a single secure settings value as an integer. |
GetInt(ContentResolver, String) |
Convenience function for retrieving a single secure settings value as an integer. |
GetLong(ContentResolver, String, Int64) |
Convenience function for retrieving a single secure settings value
as a |
GetLong(ContentResolver, String) |
Convenience function for retrieving a single secure settings value
as a |
GetString(ContentResolver, String) |
Look up a name in the database. |
GetUriFor(String) |
Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver. |
IsLocationProviderEnabled(ContentResolver, String) |
Obsolete.
Helper method for determining if a location provider is enabled. |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
PutFloat(ContentResolver, String, Single) |
Convenience function for updating a single settings value as a floating point number. |
PutInt(ContentResolver, String, Int32) |
Convenience function for updating a single settings value as an integer. |
PutLong(ContentResolver, String, Int64) |
Convenience function for updating a secure settings value as a long integer. |
PutString(ContentResolver, String, String) |
Store a name/value pair into the database. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetLocationProviderEnabled(ContentResolver, String, Boolean) |
Obsolete.
Thread-safe method for enabling or disabling a single location provider. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |