This function is part of the TitleStorage Interface.
Retrieve the contents of a specific file, potentially downloading the contents if we do not have a local copy, from the cloud. This request will occur asynchronously, potentially over
multiple frames. All callbacks for this function will come from the same thread that the SDK is ticked from. If specified, the FileTransferProgressCallback will always be called at
least once if the request is started successfully.
Return Value
A valid Title Storage File Request handle if successful, or NULL otherwise. Data contained in the completion callback will have more detailed information about issues with the request in failure cases. This handle must be released when it is no longer needed
See Also
{TitleStorageFileTransferRequest.Release}
Parameters
TitleStorage.TitleStorageInterface.ReadFile
Parameter Type And Name
|
Usage Information
|
ReadFileOptions options
|
Object containing properties related to which user is opening the file, what the file's name is, and related mechanisms for copying the data
|
object clientData
|
Optional pointer to help clients track this request, that is returned in associated callbacks
|
OnReadFileCompleteCallback completionCallback
|
This function is called when the read operation completes
|
This function is asynchronous; the EOS SDK guarantees that your callback (the CompletionCallback
parameter) will run when the operation completes, regardless of whether it succeeds or fails. Use the object
parameter to pass any contextual information the callback may need in order to react properly. Relevant information can be copied from the EOS SDK's cache while the callback function is running. You do not need to remove the callback function.
Because this function is asynchronous, it employs a callback of type TitleStorage.OnReadFileCompleteCallback to report the results of its operation.
Callback for when {TitleStorageInterface.ReadFile} completes
Callback Parameters
TitleStorage.OnReadFileCompleteCallback
Parameter Type And Name
|
Usage Information
|
ReadFileCallbackInfo data
|
|