@@ -374,6 +374,54 @@ PF_ASSUME_NONNULL_BEGIN
374374 */
375375- (void )getDataInBackgroundWithTarget : (PF_NULLABLE_S id )target selector : (PF_NULLABLE_S SEL )selector ;
376376
377+ /* !
378+ @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network.
379+
380+ @note The file path may change between versions of SDK.
381+ @note If you overwrite the contents of the file at returned path it will persist those change
382+ until the file cache is cleared.
383+
384+ @returns The task, with the result set to `NSString` representation of a file path.
385+ */
386+ - (BFTask PF_GENERIC (NSString *) *)getFilePathInBackground;
387+
388+ /* !
389+ @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network.
390+
391+ @note The file path may change between versions of SDK.
392+ @note If you overwrite the contents of the file at returned path it will persist those change
393+ until the file cache is cleared.
394+
395+ @param progressBlock The block should have the following argument signature: `^(int percentDone)`.
396+
397+ @returns The task, with the result set to `NSString` representation of a file path.
398+ */
399+ - (BFTask PF_GENERIC (NSString *) *)getFilePathInBackgroundWithProgressBlock:(PF_NULLABLE PFProgressBlock)progressBlock;
400+
401+ /* !
402+ @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network.
403+
404+ @note The file path may change between versions of SDK.
405+ @note If you overwrite the contents of the file at returned path it will persist those change
406+ until the file cache is cleared.
407+
408+ @param block The block should have the following argument signature: `^(NSString *filePath, NSError *error)`.
409+ */
410+ - (void )getFilePathInBackgroundWithBlock : (PF_NULLABLE PFFilePathResultBlock)block ;
411+
412+ /* !
413+ @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network.
414+
415+ @note The file path may change between versions of SDK.
416+ @note If you overwrite the contents of the file at returned path it will persist those change
417+ until the file cache is cleared.
418+
419+ @param block The block should have the following argument signature: `^(NSString *filePath, NSError *error)`.
420+ @param progressBlock The block should have the following argument signature: `^(int percentDone)`.
421+ */
422+ - (void )getFilePathInBackgroundWithBlock : (PF_NULLABLE PFFilePathResultBlock)block
423+ progressBlock : (PF_NULLABLE PFProgressBlock)progressBlock ;
424+
377425// /--------------------------------------
378426// / @name Interrupting a Transfer
379427// /--------------------------------------
0 commit comments