i'm trying to get a streamable link URL from an mp3 stored in my Dropbox for an app i'm developing. I use the function loadStreamableURLForFile()
but it does not return anything, by the time it's of type void
. So how am i supposed to get that streamable URL back?
thanks in advance
In the Dropbox iOS Core SDK, the result of asynchronous calls like this get delivered via a delegate. See https://www.dropbox.com/developers/core/start/ios and the use of uploadedFile
and uploadFileFailedWithError
in particular to understand the delegate pattern.
You should implement these methods (from DBRestClient.h
) to receive the link:
- (void)restClient:(DBRestClient*)restClient loadedSharableLink:(NSString*)link
forFile:(NSString*)path;
- (void)restClient:(DBRestClient*)restClient loadSharableLinkFailedWithError:(NSError*)error;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.