diff --git a/docs/next/settings.html b/docs/next/settings.html index f0a0ee382aa..57b004fb20d 100644 --- a/docs/next/settings.html +++ b/docs/next/settings.html @@ -69,85 +69,28 @@ } });
Edit

Settings

Settings serves as a wrapper for NSUserDefaults, a persistent key-value store available only on iOS.

-

Example

-

+

Reference

Methods

clearWatch()

-
static clearWatch(watchId: number)
+
static clearWatch(watchId)
 

watchId is the number returned by watchKeys() when the subscription was originally configured.

get()

-
static get(key: string): mixed
+
static get(key)
 
-

Get the current value for a given key in NSUserDefaults.

+

Get the current value for a key in NSUserDefaults.


set()

-
static set(settings: object)
+
static set(settings)
 

Set one or more values in NSUserDefaults.


watchKeys()

-
static watchKeys(keys: string | array<string>, callback: function): number
-
-

Subscribe to be notified when the value for any of the keys specified by the keys parameter has been changed in NSUserDefaults. Returns a watchId number that may be used with clearWatch() to unsubscribe.

-
-

Note: watchKeys() by design ignores internal set() calls and fires callback only on changes preformed outside of React Native code.

-
-
Edit

Settings

Settings serves as a wrapper for NSUserDefaults, a persistent key-value store available only on iOS.

-

Example

-

+

Reference

Methods

clearWatch()

-
static clearWatch(watchId: number)
+
static clearWatch(watchId)
 

watchId is the number returned by watchKeys() when the subscription was originally configured.

get()

-
static get(key: string): mixed
+
static get(key)
 
-

Get the current value for a given key in NSUserDefaults.

+

Get the current value for a key in NSUserDefaults.


set()

-
static set(settings: object)
+
static set(settings)
 

Set one or more values in NSUserDefaults.


watchKeys()

-
static watchKeys(keys: string | array<string>, callback: function): number
-
-

Subscribe to be notified when the value for any of the keys specified by the keys parameter has been changed in NSUserDefaults. Returns a watchId number that may be used with clearWatch() to unsubscribe.

-
-

Note: watchKeys() by design ignores internal set() calls and fires callback only on changes preformed outside of React Native code.

-
-