to top
Android APIs
Added in API level 1
public interface

PreferencesFactory

java.util.prefs.PreferencesFactory

Class Overview

This interface is used by the Preferences class as factory class to create Preferences instances. This interface can be implemented and installed to replace the default preferences implementation.

See Also

Summary

Public Methods
abstract Preferences systemRoot()
Returns the root node of the system preferences hierarchy.
abstract Preferences userRoot()
Returns the root node of the preferences hierarchy for the calling user context.

Public Methods

public abstract Preferences systemRoot ()

Added in API level 1

Returns the root node of the system preferences hierarchy.

Returns
  • the system preferences hierarchy root node.

public abstract Preferences userRoot ()

Added in API level 1

Returns the root node of the preferences hierarchy for the calling user context.

Returns
  • the user preferences hierarchy root node.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.