Interface for managing multiple key-value storages, providing access and lifecycle control. More...
#include <com/navigine/idl/objc/NCStorageManager.h>
Inherits NSObject.
Instance Methods | |
| (nonnull NSArray< NSString * > *) | - getStorageList |
| (nullable NCKeyValueStorage *) | - getStorage: |
| (void) | - removeStorage: |
Interface for managing multiple key-value storages, providing access and lifecycle control.
Referenced from NavigineSdk.
Definition at line 18 of file NCStorageManager.h.
| - (nullable NCKeyValueStorage *) getStorage: | (nonnull NSString *) | name |
Returns a handle to a storage by name, creating it if it does not exist.
| name | Storage name (case-sensitive). |
Swift code snippet:
Objective C code snippet:
| - (nonnull NSArray< NSString * > *) getStorageList |
Returns the list of all existing user storages.
Swift code snippet:
Objective C code snippet:
| - (void) removeStorage: | (nonnull NSString *) | name |
Removes the storage and all its persisted data. If the storage does not exist, this is a no-op.
| name | Storage name (case-sensitive). |
Swift code snippet:
Objective C code snippet: