Platforms to show: All Mac Windows Linux Cross-Platform
NSUbiquitousKeyValueStoreMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | iCloud | MBS MacCloud Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Size of data is limited to 64 KB per application and 4 KB per value.
Do not store data here. Better store some configuration data, bookmarks or highscores.
Please also check the documentation from Apple for the NSUbiquitousKeyValueStore class. Seems like you need your app to be signed with iCloud Storage Entitlements.
- event DidChangeExternally(ChangeReason as Integer, ChangedKeys() as string, notification as Variant)
- 8 properties
- property Handle as Integer
- property BooleanValue(key as string) as Boolean
- property DataValue(key as string) as memoryblock
- property DictionaryValue(key as string) as Dictionary
- property DoubleValue(key as string) as Double
- property IntegerValue(key as string) as Int64
- property StringValue(key as string) as string
- property VariantValue(key as string) as Variant
- 7 methods
- method ArrayValue(key as string) as Variant()
- method ArrayValue(key as string, assigns values() as Variant)
- method Constructor
- method Destructor
- method dictionaryRepresentation as dictionary
- method removeObjectForKey(key as string)
- method synchronize as boolean
- 5 shared methods
- shared method available as boolean
- shared method defaultStore as NSUbiquitousKeyValueStoreMBS
- shared method NSUbiquitousKeyValueStoreChangedKeysKey as string
- shared method NSUbiquitousKeyValueStoreChangeReasonKey as string
- shared method NSUbiquitousKeyValueStoreDidChangeExternallyNotification as string
- 3 constants
Change Reason Constants
Constant | Value | Description |
---|---|---|
NSUbiquitousKeyValueStoreInitialSyncChange | 1 | |
NSUbiquitousKeyValueStoreQuotaViolationChange | 2 | |
NSUbiquitousKeyValueStoreServerChange | 0 |
This class has no sub classes.
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacCloud Plugin.