/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
iOS/SharedCode/StandaloneAppStore.h
30 строк
1 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// // StandaloneAppStore.h // RobloxMobile // // Created by Ben Tkacheff on 5/2/14. // Copyright (c) 2014 ROBLOX. All rights reserved. // #import <Foundation/Foundation.h> #import <StoreKit/StoreKit.h> #include "v8tree/Instance.h" @interface StandaloneAppStore : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver> { weak_ptr<RBX::Instance> currentPlayerPurchasing; NSString* currentProductId; SKProductsRequest *request; } -(id) init; // WARNING: DO NOT access this directly!!!!! please use the macro 'GetStoreMgr' instead +(StandaloneAppStore*) getStandaloneAppStore; -(void) purchaseProduct:(NSString*)productId player:(shared_ptr<RBX::Instance>) player; -(void) promptThirdPartyPurchase:(shared_ptr<RBX::Instance>) player productId:(std::string) productId; -(void) signalMarketplacePurchaseFinished:(shared_ptr<RBX::Instance>) player productId:(std::string) productId receipt:(std::string) receipt purchased:(bool) purchased; - (void)requestDidFinish:(SKRequest *)finishedRequest; @end