LiveConnectClient downloadFromPath:delegate:userState method
Performs an asynchronous download of a file with a given path from the user's Microsoft OneDrive account. The method also has the option of specifying a LiveDownloadOperationDelegate and a user state.
Signature
- (LiveDownloadOperation *) downloadFromPath:(NSString *)path
delegate:(id <LiveDownloadOperationDelegate>)delegate
userState:(id)userState;
Parameters
Name |
Datatype |
Description |
---|---|---|
path |
NSString |
Required. The path or object ID of the resource to download. |
delegate |
id <LiveDownloadOperationDelegate> |
Optional. An instance of a class that implements the LiveDownloadOperationDelegate protocol. |
userState |
id |
Optional. An object that is used to track the asynchronous state. The userState object is found in the userState property of the LiveDownloadOperation instance that is passed as a parameter when a LiveDownloadOperationDelegate protocol method is invoked. |
Returns
Type: LiveDownloadOperation
The asynchronous operation that is used to track the asynchronous download request from the OneDrive service and get response data once the operation completes.
Defined in
LiveConnectClient.h