diff --git a/Gemfile.lock b/Gemfile.lock index 0c83faa..73a21fc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,12 +9,12 @@ GEM tzinfo (~> 1.1) atomos (0.1.2) claide (1.0.2) - cocoapods (1.4.0) + cocoapods (1.5.0) activesupport (>= 4.0.2, < 5) claide (>= 1.0.2, < 2.0) - cocoapods-core (= 1.4.0) + cocoapods-core (= 1.5.0) cocoapods-deintegrate (>= 1.0.2, < 2.0) - cocoapods-downloader (>= 1.1.3, < 2.0) + cocoapods-downloader (>= 1.2.0, < 2.0) cocoapods-plugins (>= 1.0.0, < 2.0) cocoapods-search (>= 1.0.0, < 2.0) cocoapods-stats (>= 1.0.0, < 2.0) @@ -24,16 +24,16 @@ GEM escape (~> 0.0.4) fourflusher (~> 2.0.1) gh_inspector (~> 1.0) - molinillo (~> 0.6.4) + molinillo (~> 0.6.5) nap (~> 1.0) ruby-macho (~> 1.1) - xcodeproj (>= 1.5.4, < 2.0) - cocoapods-core (1.4.0) + xcodeproj (>= 1.5.7, < 2.0) + cocoapods-core (1.5.0) activesupport (>= 4.0.2, < 6) fuzzy_match (~> 2.0.4) nap (~> 1.0) cocoapods-deintegrate (1.0.2) - cocoapods-downloader (1.1.3) + cocoapods-downloader (1.2.0) cocoapods-plugins (1.0.0) nap cocoapods-search (1.0.0) @@ -52,7 +52,7 @@ GEM concurrent-ruby (~> 1.0) minitest (5.11.3) molinillo (0.6.5) - nanaimo (0.2.4) + nanaimo (0.2.5) nap (1.1.0) netrc (0.11.0) ruby-macho (1.1.0) diff --git a/docs/Classes.html b/docs/Classes.html index 0f4c52e..3d9ca76 100644 --- a/docs/Classes.html +++ b/docs/Classes.html @@ -10,6 +10,7 @@
+Swift
+@objcMembers
+public final class Zephyr : NSObject
+
+ @objcMembers
+public final class Zephyr : NSObject
+
+
-
+
- debugEnabled
+ debugEnabled
Swift
-public static var debugEnabled = false
+ public static var debugEnabled: Bool
If true, then NSUbiquitousKeyValueStore.synchronize() will be called immediately after any change is made.
+If true, then NSUbiquitousKeyValueStore.synchronize()
will be called immediately after any change is made.
Swift
-public static var syncUbiquitousKeyValueStoreOnChange = true
+ public static var syncUbiquitousKeyValueStoreOnChange: Bool
-
+
- sync(keys:)
+ sync(keys:)
Zephyr’s synchronization method.
-Zephyr will synchronize all NSUserDefaults with NSUbiquitousKeyValueStore.
+Zephyr will synchronize all UserDefaults
with NSUbiquitousKeyValueStore
.
If one or more keys are passed, only those keys will be synchronized.
@@ -128,7 +135,7 @@Swift
-public static func sync(keys: String...)
+ public static func sync(keys: String...)
If you pass a one or more keys, only those key will be synchronized. If no keys are passed, than all NSUserDefaults will be synchronized with NSUbiquitousKeyValueStore.
+If you pass a one or more keys, only those key will be synchronized. If no keys are passed, than all UserDefaults
will be synchronized with NSUbiquitousKeyValueStore
.
-
+
- sync(keys:)
+ sync(keys:)
+
+ Overloaded version of Zephyr’s synchronization method, sync(keys:)
.
This method will synchronize an array of keys between UserDefaults
and NSUbiquitousKeyValueStore
.
Swift
+public static func sync(keys: [String])
+
+
+
+ keys
+
+ |
+
+
+
+ An array of keys that should be synchronized between |
+
+
+
+ sync(keys:userDefaults:)
+
+ Overloaded version of Zephyr’s synchronization method, sync(keys:)
.
If a custom UserDefaults object is passed in, Zephyr will synchronize that rather than UserDefaults.standard
.
Swift
+public static func sync(keys: String..., userDefaults: UserDefaults = UserDefaults.standard)
+
+
+
+ userDefaults
+
+ |
+
+
+
+ The |
+
+
+ keys
+
+ |
+
+
+
+ If you pass a one or more keys, only those key will be synchronized. If no keys are passed, than all |
+
+
+
+ sync(keys:userDefaults:)
Overloaded version of Zephyr’s synchronization method, sync(keys:).
+Overloaded version of Zephyr’s synchronization method, sync(keys:)
.
This method will synchronize an array of keys between NSUserDefaults and NSUbiquitousKeyValueStore.
+If a custom UserDefaults object is passed in, Zephyr will synchronize that rather than UserDefaults.standard
.
Swift
-public static func sync(keys: [String])
+ public static func sync(keys: [String], userDefaults: UserDefaults = UserDefaults.standard)
+
+ userDefaults
+
+ |
+
+
+
+ The |
+
@@ -192,7 +321,7 @@ |
-
An array of keys that should be synchronized between NSUserDefaults and NSUbiquitousKeyValueStore. +An array of keys that should be synchronized between |
-
If you pass a one or more keys, only those key will be synchronized. If no keys are passed, than all NSUserDefaults will be synchronized with NSUbiquitousKeyValueStore. +If you pass a one or more keys, only those key will be synchronized. If no keys are passed, than all |
@@ -157,9 +164,118 @@
+
+ keys
+
+ |
+
+
+
+ An array of keys that should be synchronized between |
+
+
+
+ sync(keys:userDefaults:)
+
+ Overloaded version of Zephyr’s synchronization method, sync(keys:)
.
If a custom UserDefaults object is passed in, Zephyr will synchronize that rather than UserDefaults.standard
.
Swift
+public static func sync(keys: String..., userDefaults: UserDefaults = UserDefaults.standard)
+
+
+
+ userDefaults
+
+ |
+
+
+
+ The |
+
+
+ keys
+
+ |
+
+
+
+ If you pass a one or more keys, only those key will be synchronized. If no keys are passed, than all |
+
+
+
+ sync(keys:userDefaults:)
Overloaded version of Zephyr’s synchronization method, sync(keys:).
+Overloaded version of Zephyr’s synchronization method, sync(keys:)
.
This method will synchronize an array of keys between NSUserDefaults and NSUbiquitousKeyValueStore.
+If a custom UserDefaults object is passed in, Zephyr will synchronize that rather than UserDefaults.standard
.
Swift
-public static func sync(keys: [String])
+ public static func sync(keys: [String], userDefaults: UserDefaults = UserDefaults.standard)
+
+ userDefaults
+
+ |
+
+
+
+ The |
+
@@ -192,7 +321,7 @@ |
-
An array of keys that should be synchronized between NSUserDefaults and NSUbiquitousKeyValueStore. +An array of keys that should be synchronized between |