docs(readme): update readme.md
Reactive extensions of StoreKit
Create observable sequence of responses for SKProductRequest and subscribe it
SKProduct.rx.request(with: ["xxxxx"]) .subscribe(onNext: { response in let products = response.products }) .dispose()
or
let request = SKProductsRequest.init(productIdentifiers: ["product_id"]) request.rx.response.subscribe { event in switch event { case .next(let response): let products = response.products default: return } } .dispose()
SKPaymentQueue.default().rx.updatedTransaction .subscribe(onNext: { transaction in // Do what you want }) .dispose()
paymentQueue.rx.productIdentifiersWithRevokedEntitlements .subscribe { productIdentifier in // Do what you want }
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
RxStoreKit
Reactive extensions of StoreKit
How to use
Request SKProduct
Create observable sequence of responses for SKProductRequest and subscribe it
or
Subscribe update payment transactons
Subscribe product identifiers with revoked entitlements