ios - How to use downloadContentForTransaction: success: progress: failure: in RMStore -
i'm trying use method rmstore
- (void)downloadcontentfortransaction:(skpaymenttransaction*)transaction success:(void (^)())successblock progress:(void (^)(float progress))progressblock failure:(void (^)(nserror *error))failureblock; but don't understand how use it. can show me example?
update:
when select method autocomplete list, don't create blocks automatically
usual:
when try open manually got errors 
from rmstore readme:
rmstore delegates downloading of self-hosted content via optional
contentdownloaderdelegate. can provide own implementation usingrmstorecontentdownloaderprotocol.
in short, downloadcontentfortransaction:success:progress:failure: part of protocol need implement, not call.
i should add if you're using apple hosted content, rmstore take care of automatically. again, readme:
downloadable content hosted apple (
skdownload) automatically downloaded when purchasing o restoring product. rmstore notify observers of download progress callingstoredownloadupdate:,storedownloadfinished:. additionally, rmstore notifies when downloads paused, cancelled or have failed.rmstore notify transaction finished or failed after of downloads have been processed. if use blocks, called afterwards well. same applies restoring transactions.
Comments
Post a Comment