Java.Util.Prefs.Preferences Members

The members of Java.Util.Prefs.Preferences are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

Default constructor, for use by subclasses only.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
MaxKeyLengthint (80). Maximum size in characters allowed for a preferences key.
const
MaxNameLengthint (80). Maximum size in characters allowed for a preferences name.
const
MaxValueLengthint (8192). Maximum size in characters allowed for a preferences value.

Public Properties

[read-only]
abstract
IsUserNodebool. Returns whether this is a user preference node.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
AbsolutePath() : string
Gets the absolute path string of this preference node.
abstract
AddNodeChangeListener(INodeChangeListener)
Registers a NodeChangeListener instance for this node, which will handle NodeChangeEvents.
abstract
AddPreferenceChangeListener(IPreferenceChangeListener)
Registers a PreferenceChangeListener instance for this node, which will handle PreferenceChangeEvents.
abstract
ChildrenNames() : string[]
Returns the names of all children of this node or an empty array if this node has no children.
abstract
Clear()
Removes all preferences of this node.
abstract
ExportNode(System.IO.Stream)
Exports all of the preferences of this node to a XML document using the given output stream.
ExportNodeAsync(System.IO.Stream) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
abstract
ExportSubtree(System.IO.Stream)
Exports all of the preferences of this node and all its descendants to a XML document using the given output stream.
ExportSubtreeAsync(System.IO.Stream) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
abstract
Flush()
Forces all pending updates to this node and its descendants to be persisted in the backing store.
FlushAsync() : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
abstract
Get(string, string) : string
Gets the String value mapped to the given key or its default value if no value is mapped or no backing store is available.
abstract
GetBoolean(string, bool) : bool
Gets the boolean value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is invalid.
abstract
GetByteArray(string, byte[]) : byte[]
Gets the byte array value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
abstract
GetDouble(string, double) : double
Gets the double value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
abstract
GetFloat(string, float) : float
Gets the float value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
abstract
GetInt(string, int) : int
Gets the int value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
abstract
GetLong(string, long) : long
Gets the long value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
static
ImportPreferences(System.IO.Stream)
Imports all the preferences from an XML document using the given input stream.
static
ImportPreferencesAsync(System.IO.Stream) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
abstract
Keys() : string[]
Returns all preference keys stored in this node or an empty array if no key was found.
abstract
Name() : string
Returns the name of this node.
abstract
Node(string) : Preferences
Returns the preference node with the given path name.
abstract
NodeExists(string) : bool
Returns whether the preference node with the given path name exists.
abstract
Parent() : Preferences
Returns the parent preference node of this node or null if this node is the root node.
abstract
Put(string, string)
Adds a new preference to this node using the given key and value or updates the value if a preference with the given key already exists.
abstract
PutBoolean(string, bool)
Adds a new preference with a boolean value to this node using the given key and value or updates the value if a preference with the given key already exists.
abstract
PutByteArray(string, byte[])
Adds a new preference to this node using the given key and the string form of the given value or updates the value if a preference with the given key already exists.
abstract
PutDouble(string, double)
Adds a new preference to this node using the given key and double value or updates the value if a preference with the given key already exists.
abstract
PutFloat(string, float)
Adds a new preference to this node using the given key and float value or updates the value if a preference with the given key already exists.
abstract
PutInt(string, int)
Adds a new preference to this node using the given key and int value or updates the value if a preference with the given key already exists.
abstract
PutLong(string, long)
Adds a new preference to this node using the given key and long value or updates the value if a preference with the given key already exists.
abstract
Remove(string)
Removes the preference mapped to the given key from this node.
abstract
RemoveNode()
Removes this preference node with all its descendants.
abstract
RemoveNodeChangeListener(INodeChangeListener)
Removes the given NodeChangeListener instance from this node.
abstract
RemovePreferenceChangeListener(IPreferenceChangeListener)
Removes the given PreferenceChangeListener instance from this node.
abstract
Sync()
Synchronizes the data of this preference node and its descendants with the back-end preference store.
SyncAsync() : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
static
SystemNodeForPackage(Java.Lang.Class) : Preferences
Documentation for this section has not yet been entered.
static
SystemRoot() : Preferences
Legacy code; do not use. On Android, the Preference nodes corresponding to the "system" and "user" preferences are stored in sections of the file system that are inaccessible to apps.
abstract
ToString() : string
Returns a string representation of this node.
static
UserNodeForPackage(Java.Lang.Class) : Preferences
Documentation for this section has not yet been entered.
static
UserRoot() : Preferences
Legacy code; do not use. On Android, the Preference nodes corresponding to the "system" and "user" preferences are stored in sections of the file system that are inaccessible to apps.