VKStorage Class Reference
Inherits from | NSObject |
Declared in | VKStorage.h |
Tasks
Properties
-
isEmpty
Is current storage empty?
property -
count
Size of VKStorage storage (number of objects in it)
property -
fullStoragePath
Full path to main storage directory
property -
fullCacheStoragePath
Full path to main cache directory
property
Initialization
-
+ sharedStorage
Shared storage
VKStorageItem creation
-
– createStorageItemForAccessToken:
Creates new VKStorageItem
Managing VKStorage items
-
– storeItem:
Adds new element to VKStorage
-
– removeItem:
Removes VKStorageItem from VKStorage.
-
– clean
Clears storage.
-
– cleanCachedData
Removes all cached data for all users.
Obtaining VKStorageItems
-
– storageItemForUserID:
Returns user’s corresponding VKStorageItem by unique user identifier
-
– storageItems
List of all items in current storage
Properties
count
Size of VKStorage storage (number of objects in it)
@property (nonatomic, readonly) NSUInteger count
Declared In
VKStorage.h
fullCacheStoragePath
Full path to main cache directory
@property (nonatomic, readonly) NSString *fullCacheStoragePath
Declared In
VKStorage.h
Instance Methods
cleanCachedData
Removes all cached data for all users.
- (void)cleanCachedData
Declared In
VKStorage.h
createStorageItemForAccessToken:
Creates new VKStorageItem
- (VKStorageItem *)createStorageItemForAccessToken:(VKAccessToken *)token
Parameters
- token
VKAccessToken for which new storage item will be created
Return Value
instance of VKStorageItem
Declared In
VKStorage.h
removeItem:
Removes VKStorageItem from VKStorage.
- (void)removeItem:(VKStorageItem *)item
Parameters
- item
item to remove from VKStorage
Declared In
VKStorage.h
storageItemForUserID:
Returns user’s corresponding VKStorageItem by unique user identifier
- (VKStorageItem *)storageItemForUserID:(NSUInteger)userID
Parameters
- userID
unique user identifier
Return Value
instance of VKStorageItem, or nil, if there is no such.
Declared In
VKStorage.h