Copyright © 2007. All rights reserved.
This document specifies the API with which widgets can place user settings into permanent storage such that widgets may have preferences.
Any and all use of the Joost API is subject to the Joost API Terms of Use
The API may change and although we will try and keep these changes to a minimum, some API calls may be deprecated in the future.
This document provides the simple and straightforward documentation for the Preferences API. Please note that this API may be extended in the future.
The Preferences API is exposed as a globally available object called, surprisingly enough,
Preferences. There is no need to instantiate it, its methods are directly available.
The Preferences interface
interface Preferences { String getString(in String name); void setString(in String name, in String value); Boolean getBool(in String name); void setBool(in String name, in Boolean value); };
getBoolGets a boolean preference given its name.
name
of type
String | The value of the preference. |
getStringGets a string preference given its name.
name
of type
String | The value of the preference. |
setBoolSets a boolean preference given its name and value.
name
of type
Stringvalue
of type
BooleansetStringSets a string preference given its name and value.
name
of type
Stringvalue
of type
String