Dashcam SDK 1.0.7
Captures, recognizes and records road aigns.
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
NMDLibraryManager Class Reference

#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
 

Detailed Description

Manages the library of recorded videos and snapshots taken using the Dashcam SDK.

Method Documentation

◆ deleteItem:completion:

- (void) deleteItem: (nonnull NMDLibraryItem *)  item
completion: (void(^)())  completion 

Deletes the specified library item.

Parameters
itemAn item to be deleted from the library.
completionA block called once the operation has completed.

◆ deleteItems:completion:

- (void) deleteItems: (nonnull NSArray< NMDLibraryItem * > *)  items
completion: (void(^)())  completion 

Deletes the specified library item.

Parameters
itemsIitems to be deleted from the library.
completionA block called once the operation has completed.

◆ fetchItemById:completion:

- (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.

Parameters
itemIdThe Id of the library item.
completionA 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.

◆ fetchItems:orderedBy:ascending:completion:

- (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.

Parameters
filterA filter that will be applied while fetching items from the library.
orderBySpecifies how items will be ordered while fetching from the library.
ascendingSpecifies whether the items should be ordered ascending or descending.
completionA 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.

◆ setLockState:toItemWithId:completion:

- (void) setLockState: (NMDLibraryItemLockState lockState
toItemWithId: (nonnull NSString *)  itemId
completion: (void(^)())  completion 

Sets the lock state for the librarary item with the specified Id.

Parameters
lockStateSpecifies whether the item should be locked and, if it should, how exactly.
itemIdThe Id of the item whose lock state should be modified.
completionA block called once the operation has completed.

Property Documentation

◆ maxStorageSpaceAllowedToOccupy

- (double) maxStorageSpaceAllowedToOccupy
readwritenonatomicassign

Specifies the maximum space in bytes that is allowed to occupy on the device to store videos and pictures.