![]() |
Dashcam SDK 1.0.7
Captures, recognizes and records road aigns.
|
#import <NMDLibraryManager.h>
Inherits NSObject.
Instance Methods | |
(void) | - fetchItemById:completion: |
(void) | - fetchItems:orderedBy:ascending:completion: |
(void) | - deleteItem:completion: |
(void) | - deleteItems:completion: |
(void) | - setLockState:toItemWithId:completion: |
Properties | |
double | maxStorageSpaceAllowedToOccupy |
Manages the library of recorded videos and snapshots taken using the Dashcam SDK.
- (void) deleteItem: | (nonnull NMDLibraryItem *) | item | |
completion: | (void(^)()) | completion | |
Deletes the specified library item.
item | An item to be deleted from the library. |
completion | A block called once the operation has completed. |
- (void) deleteItems: | (nonnull NSArray< NMDLibraryItem * > *) | items | |
completion: | (void(^)()) | completion | |
Deletes the specified library item.
items | Iitems to be deleted from the library. |
completion | A block called once the operation has completed. |
- (void) fetchItemById: | (nonnull NSString *) | itemId | |
completion: | (void(^)(NMDLibraryItem *_Nullable item)) | completion | |
Fetches a library item by its Id and returns it in the completion block.
itemId | The Id of the library item. |
completion | A block called once the requested item has or hasn't been found. If the item hasn't been found, nil is passed to the block. |
- (void) fetchItems: | (NMDLibraryFetchFilter) | filter | |
orderedBy: | (NMDLibraryFetchOrderBy) | orderBy | |
ascending: | (BOOL) | ascending | |
completion: | (void(^)(NSArray< NMDLibraryItem * > *_Nullable items)) | completion | |
Fetches library items using the specified parameters and returns found items in the completion block.
filter | A filter that will be applied while fetching items from the library. |
orderBy | Specifies how items will be ordered while fetching from the library. |
ascending | Specifies whether the items should be ordered ascending or descending. |
completion | A block called once the requested items have or haven't been found. If the items haven't been found, nil is passed to the block. |
- (void) setLockState: | (NMDLibraryItemLockState) | lockState | |
toItemWithId: | (nonnull NSString *) | itemId | |
completion: | (void(^)()) | completion | |
Sets the lock state for the librarary item with the specified Id.
lockState | Specifies whether the item should be locked and, if it should, how exactly. |
itemId | The Id of the item whose lock state should be modified. |
completion | A block called once the operation has completed. |
|
readwritenonatomicassign |
Specifies the maximum space in bytes that is allowed to occupy on the device to store videos and pictures.