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 enter image description here usual: when try open manually got errors

from rmstore readme:

rmstore delegates downloading of self-hosted content via optional contentdownloader delegate. can provide own implementation using rmstorecontentdownloader protocol.

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 calling storedownloadupdate: , 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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -