All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.UserDefaults

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.UserDefaults

public class UserDefaults
extends NativeObject
This class wraps the Objective-C class NSUserDefaults.


Constructor Index

 o UserDefaults()
This default constructor is equivalent to Objective-C's [[NSUserDefaults alloc] init].
 o UserDefaults(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o UserDefaults(String)
This constructor has the same effect as calling - initWithUser: on a newly allocated object.

Method Index

 o arrayForKey(String)
A wrapper for the - arrayForKey: Objective-C instance method.
 o booleanForKey(String)
A wrapper for the - boolForKey: Objective-C instance method.
 o dataForKey(String)
A wrapper for the - dataForKey: Objective-C instance method.
 o dictionaryForKey(String)
A wrapper for the - dictionaryForKey: Objective-C instance method.
 o dictionaryRepresentation()
A wrapper for the - dictionaryRepresentation Objective-C instance method.
 o floatForKey(String)
A wrapper for the - floatForKey: Objective-C instance method.
 o integerForKey(String)
A wrapper for the - integerForKey: Objective-C instance method.
 o objectForKey(String)
A wrapper for the - objectForKey: Objective-C instance method.
 o persistentDomainForName(String)
A wrapper for the - persistentDomainForName: Objective-C instance method.
 o persistentDomainNames()
A wrapper for the - persistentDomainNames Objective-C instance method.
 o registerDefaults(Dictionary)
A wrapper for the - registerDefaults: Objective-C instance method.
 o removeObjectForKey(String)
A wrapper for the - removeObjectForKey: Objective-C instance method.
 o removePersistentDomainForName(String)
A wrapper for the - removePersistentDomainForName: Objective-C instance method.
 o removeVolatileDomainForName(String)
A wrapper for the - removeVolatileDomainForName: Objective-C instance method.
 o searchList()
A wrapper for the - searchList Objective-C instance method.
 o setBooleanForKey(boolean, String)
A wrapper for the - setBool:forKey: Objective-C instance method.
 o setFloatForKey(float, String)
A wrapper for the - setFloat:forKey: Objective-C instance method.
 o setIntegerForKey(int, String)
A wrapper for the - setInteger:forKey: Objective-C instance method.
 o setObjectForKey(Object, String)
A wrapper for the - setObject:forKey: Objective-C instance method.
 o setPersistentDomain(Dictionary, String)
A wrapper for the - setPersistentDomain:forName: Objective-C instance method.
 o setSearchList(Array)
A wrapper for the - setSearchList: Objective-C instance method.
 o setVolatileDomain(Dictionary, String)
A wrapper for the - setVolatileDomain:forName: Objective-C instance method.
 o standardUserDefaults()
A wrapper for the + standardUserDefaults Objective-C class method.
 o stringArrayForKey(String)
A wrapper for the - stringArrayForKey: Objective-C instance method.
 o stringForKey(String)
A wrapper for the - stringForKey: Objective-C instance method.
 o synchronize()
A wrapper for the - synchronize Objective-C instance method.
 o volatileDomainForName(String)
A wrapper for the - volatileDomainForName: Objective-C instance method.
 o volatileDomainNames()
A wrapper for the - volatileDomainNames Objective-C instance method.

Constructors

 o UserDefaults
 protected UserDefaults(boolean shouldAllocate,
                        int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o UserDefaults
 public UserDefaults()
This default constructor is equivalent to Objective-C's [[NSUserDefaults alloc] init].

 o UserDefaults
 public UserDefaults(String username)
This constructor has the same effect as calling - initWithUser: on a newly allocated object.

Methods

 o standardUserDefaults
 public static native UserDefaults standardUserDefaults()
A wrapper for the + standardUserDefaults Objective-C class method.

 o objectForKey
 public native Object objectForKey(String defaultName)
A wrapper for the - objectForKey: Objective-C instance method.

 o setObjectForKey
 public native void setObjectForKey(Object value,
                                    String defaultName)
A wrapper for the - setObject:forKey: Objective-C instance method.

 o removeObjectForKey
 public native void removeObjectForKey(String defaultName)
A wrapper for the - removeObjectForKey: Objective-C instance method.

 o stringForKey
 public native String stringForKey(String defaultName)
A wrapper for the - stringForKey: Objective-C instance method.

 o arrayForKey
 public native Array arrayForKey(String defaultName)
A wrapper for the - arrayForKey: Objective-C instance method.

 o dictionaryForKey
 public native Dictionary dictionaryForKey(String defaultName)
A wrapper for the - dictionaryForKey: Objective-C instance method.

 o dataForKey
 public native Data dataForKey(String defaultName)
A wrapper for the - dataForKey: Objective-C instance method.

 o stringArrayForKey
 public native Array stringArrayForKey(String defaultName)
A wrapper for the - stringArrayForKey: Objective-C instance method.

 o integerForKey
 public native int integerForKey(String defaultName)
A wrapper for the - integerForKey: Objective-C instance method.

 o floatForKey
 public native float floatForKey(String defaultName)
A wrapper for the - floatForKey: Objective-C instance method.

 o booleanForKey
 public native boolean booleanForKey(String defaultName)
A wrapper for the - boolForKey: Objective-C instance method.

 o setIntegerForKey
 public native void setIntegerForKey(int value,
                                     String defaultName)
A wrapper for the - setInteger:forKey: Objective-C instance method.

 o setFloatForKey
 public native void setFloatForKey(float value,
                                   String defaultName)
A wrapper for the - setFloat:forKey: Objective-C instance method.

 o setBooleanForKey
 public native void setBooleanForKey(boolean value,
                                     String defaultName)
A wrapper for the - setBool:forKey: Objective-C instance method.

 o searchList
 public native Array searchList()
A wrapper for the - searchList Objective-C instance method.

 o setSearchList
 public native void setSearchList(Array array)
A wrapper for the - setSearchList: Objective-C instance method.

 o registerDefaults
 public native void registerDefaults(Dictionary registrationDictionary)
A wrapper for the - registerDefaults: Objective-C instance method.

 o dictionaryRepresentation
 public native Dictionary dictionaryRepresentation()
A wrapper for the - dictionaryRepresentation Objective-C instance method.

 o volatileDomainNames
 public native Array volatileDomainNames()
A wrapper for the - volatileDomainNames Objective-C instance method.

 o volatileDomainForName
 public native Dictionary volatileDomainForName(String domainName)
A wrapper for the - volatileDomainForName: Objective-C instance method.

 o setVolatileDomain
 public native void setVolatileDomain(Dictionary domain,
                                      String domainName)
A wrapper for the - setVolatileDomain:forName: Objective-C instance method.

 o removeVolatileDomainForName
 public native void removeVolatileDomainForName(String domainName)
A wrapper for the - removeVolatileDomainForName: Objective-C instance method.

 o persistentDomainNames
 public native Array persistentDomainNames()
A wrapper for the - persistentDomainNames Objective-C instance method.

 o persistentDomainForName
 public native Dictionary persistentDomainForName(String domainName)
A wrapper for the - persistentDomainForName: Objective-C instance method.

 o setPersistentDomain
 public native void setPersistentDomain(Dictionary domain,
                                        String domainName)
A wrapper for the - setPersistentDomain:forName: Objective-C instance method.

 o removePersistentDomainForName
 public native void removePersistentDomainForName(String domainName)
A wrapper for the - removePersistentDomainForName: Objective-C instance method.

 o synchronize
 public native boolean synchronize()
A wrapper for the - synchronize Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index