Sdílet prostřednictvím


Settings.Global Class

Definition

Global system settings, containing preferences that always apply identically to all defined users.

[Android.Runtime.Register("android/provider/Settings$Global", DoNotGenerateAcw=true)]
public sealed class Settings.Global : Android.Provider.Settings.NameValueTable
[<Android.Runtime.Register("android/provider/Settings$Global", DoNotGenerateAcw=true)>]
type Settings.Global = class
    inherit Settings.NameValueTable
Inheritance
Attributes

Remarks

Global system settings, containing preferences that always apply identically to all defined users. Applications can read these but are not allowed to write; like the "Secure" settings, these are for preferences that the user must explicitly modify through the system UI or specialized APIs for those values.

Java documentation for android.provider.Settings.Global.

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.Global()

Fields

AdbEnabled

Whether ADB over USB is enabled.

AirplaneModeOn

Whether Airplane Mode is on.

AirplaneModeRadios

A comma separated list of radios that need to be disabled when airplane mode is on.

AlwaysFinishActivities

If not 0, the activity manager will aggressively finish activities and processes as soon as they are no longer needed.

AnimatorDurationScale

Scaling factor for Animator-based animations.

ApplyRampingRinger

Whether applying ramping ringer on incoming phone call ringtone.

AutoTime

Value to specify if the device's UTC system clock should be set automatically, e.

AutoTimeZone

Value to specify if the device's time zone system property should be set automatically, e.

BluetoothOn

Whether bluetooth is enabled/disabled 0=disabled.

BootCount

Boot count since the device starts running API level 24.

ContactMetadataSyncEnabled

Whether to enable contacts metadata syncing or not The value 1 - enable, 0 - disable

DataRoaming

Whether or not data roaming is enabled.

DebugApp

Name of an application package to be debugged.

DevelopmentSettingsEnabled

Whether user has enabled development settings.

DeviceName

The name of the device

DeviceProvisioned

Whether the device has been provisioned (0 = false, 1 = true).

HttpProxy

Host name and port for global http proxy.

InstallNonMarketApps
Obsolete.

This member is deprecated.

ModeRinger

Ringer mode.

Name (Inherited from Settings.NameValueTable)
NetworkPreference

User preference for which network(s) should be used.

RadioBluetooth

Constant for use in AIRPLANE_MODE_RADIOS or SATELLITE_MODE_RADIOS to specify Bluetooth radio.

RadioCell

Constant for use in AIRPLANE_MODE_RADIOS to specify Cellular radio.

RadioNfc

Constant for use in AIRPLANE_MODE_RADIOS or SATELLITE_MODE_RADIOS to specify NFC radio.

RadioWifi

Constant for use in AIRPLANE_MODE_RADIOS or SATELLITE_MODE_RADIOS to specify Wi-Fi radio.

SecureFrpMode

Indicates whether the device is under restricted secure FRP mode.

ShowProcesses

Control whether the process CPU usage meter should be shown.

StayOnWhilePluggedIn

Whether we keep the device on while the device is plugged in.

SysPropSettingVersion
TransitionAnimationScale

Scaling factor for activity transition animations.

UsbMassStorageEnabled

USB Mass Storage Enabled

UseGoogleMail

If this setting is set (to anything), then all references to Gmail on the device must change to Google Mail.

Value (Inherited from Settings.NameValueTable)
WaitForDebugger

If 1, when launching DEBUG_APP it will wait for the debugger before starting user code.

WifiDeviceOwnerConfigsLockdown

This setting controls whether WiFi configurations created by a Device Owner app should be locked down (that is, be editable or removable only by the Device Owner App, not even by Settings app).

WifiMaxDhcpRetryCount

The maximum number of times we will retry a connection to an access point for which we have failed in acquiring an IP address from DHCP.

WifiMobileDataTransitionWakelockTimeoutMs

Maximum amount of time in milliseconds to hold a wakelock while waiting for mobile data connectivity to be established after a disconnect from Wi-Fi.

WifiNetworksAvailableNotificationOn

Whether to notify the user of open networks.

WifiNetworksAvailableRepeatDelay

Delay (in seconds) before repeating the Wi-Fi networks available notification.

WifiNumOpenNetworksKept

When the number of open networks exceeds this number, the least-recently-used excess networks will be removed.

WifiOn

Whether the Wi-Fi should be on.

WifiSleepPolicy

The policy for deciding when Wi-Fi should go to sleep (which will in turn switch to using the mobile data as an Internet connection).

WifiSleepPolicyDefault

Value for #WIFI_SLEEP_POLICY to use the default Wi-Fi sleep policy, which is to sleep shortly after the turning off according to the #STAY_ON_WHILE_PLUGGED_IN setting.

WifiSleepPolicyNever

Value for #WIFI_SLEEP_POLICY to never go to sleep.

WifiSleepPolicyNeverWhilePlugged

Value for #WIFI_SLEEP_POLICY to use the default policy when the device is on battery, and never go to sleep when the device is plugged in.

WifiWatchdogOn

Whether the Wi-Fi watchdog is enabled.

WindowAnimationScale

Scaling factor for normal window animations.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContentUri

The content:// style URL for global secure settings items.

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 long.

GetLong(ContentResolver, String)

Convenience function for retrieving a single secure settings value as a long.

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.

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)
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)

Applies to