summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLFileManager.h
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-08-25 13:45:15 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-08-25 13:45:15 -0400
commitad762812898c1849be83eb4dbefcba475dfbafe1 (patch)
treedb611ff63de94e99f3ef415d0bfea7de81d1367b /SmartDeviceLink/SDLFileManager.h
parent487f3ba67e272078787565977c9398ea71833532 (diff)
downloadsdl_ios-ad762812898c1849be83eb4dbefcba475dfbafe1.tar.gz
Alter a bunch of handlers for more consistent and descriptive language
Diffstat (limited to 'SmartDeviceLink/SDLFileManager.h')
-rw-r--r--SmartDeviceLink/SDLFileManager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLFileManager.h b/SmartDeviceLink/SDLFileManager.h
index 898d36e4a..0831a1ecd 100644
--- a/SmartDeviceLink/SDLFileManager.h
+++ b/SmartDeviceLink/SDLFileManager.h
@@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
typedef NSString SDLFileName;
-typedef void (^SDLFileManagerStartupCompletion)(BOOL success, NSError *__nullable error);
+typedef void (^SDLFileManagerStartupCompletionHandler)(BOOL success, NSError *__nullable error);
/**
@@ -72,7 +72,7 @@ typedef void (^SDLFileManagerStartupCompletion)(BOOL success, NSError *__nullabl
*
* @param completionHandler The handler called when the manager is set up or failed to set up with an error. Use weak self when accessing self from the completion handler.
*/
-- (void)startWithCompletionHandler:(nullable SDLFileManagerStartupCompletion)completionHandler;
+- (void)startWithCompletionHandler:(nullable SDLFileManagerStartupCompletionHandler)completionHandler;
/**
* Cancels all file manager operations and deletes all associated data.
@@ -85,7 +85,7 @@ typedef void (^SDLFileManagerStartupCompletion)(BOOL success, NSError *__nullabl
* @param name The name of the remote file. It should be a name currently stored in remoteFileNames
* @param completion An optional completion handler that sends an error should one occur.
*/
-- (void)deleteRemoteFileWithName:(SDLFileName *)name completionHandler:(nullable SDLFileManagerDeleteCompletion)completion;
+- (void)deleteRemoteFileWithName:(SDLFileName *)name completionHandler:(nullable SDLFileManagerDeleteCompletionHandler)completion;
/**
* Upload a file to the remote file system. If a file with the [SDLFile name] already exists, this will overwrite that file. If you do not want that to happen, check remoteFileNames before uploading, or change allowOverwrite to NO.
@@ -93,7 +93,7 @@ typedef void (^SDLFileManagerStartupCompletion)(BOOL success, NSError *__nullabl
* @param file An SDLFile that contains metadata about the file to be sent
* @param completion An optional completion handler that sends an error should one occur.
*/
-- (void)uploadFile:(SDLFile *)file completionHandler:(nullable SDLFileManagerUploadCompletion)completion;
+- (void)uploadFile:(SDLFile *)file completionHandler:(nullable SDLFileManagerUploadCompletionHandler)completion;
/**
* A URL to the directory where temporary files are stored. When an SDLFile is created with NSData, it writes to a temporary file until the file manager finishes uploading it.