AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
#include <IzPlatformMarket.h>
Public Types | |
enum | eMarketStatus { MS_IDLE, MS_PURCHASING, MS_PURCHASE_COMPLETED, MS_RESTORE_COMPLETED, MS_ERROR_CLIENT_INVALID, MS_ERROR_PAYMENT_CANCELLED, MS_ERROR_PAYMENT_INVALID, MS_ERROR_PAYMENT_NOT_ALLOWED, MS_ERROR_PURCHASE_UNKNOWN, MS_ERROR_PURCHASE_DISABLED, MS_ERROR_NO_CONNECTION, MS_ERROR_RESTORE_FAILED, MS_ERROR_UNKNOWN_PRODUCT, MS_ERROR_DEVELOPER_ERROR, MS_ERROR_UNAVAILABLE } |
Public Member Functions | |
bool | isAvailable () const |
bool | isInitialised () const |
eMarketStatus | getStatus () const |
void | setStatus (eMarketStatus status) |
CzMarket * | getActiveMarket () |
void | setActiveMarket (CzMarket *market) |
void | setSimulation (unsigned int sim) |
unsigned int | getSimulation () const |
virtual bool | isBillingEnabled ()=0 |
Returns true if billing enabled on device. | |
IzPlatformMarket () | |
virtual int | Init (void *id)=0 |
Market intialisation. | |
virtual void | Release ()=0 |
Market cleanup. | |
virtual void | Update ()=0 |
Per frame update. | |
virtual bool | QueryProduct (const char *product_id)=0 |
Query product information. | |
virtual bool | PurchaseProduct (const char *product_id)=0 |
Purchase a product. | |
virtual bool | RestoreProducts ()=0 |
Restore previously purchased products. | |
Protected Attributes | |
bool | Available |
Is available on this platform. | |
bool | Initialised |
Initialised state. | |
eMarketStatus | Status |
Markets current status. | |
CzMarket * | ActiveMarket |
Currently active market. | |
unsigned int | SimulationHash |
Name of sinulation to perform. |
IzPlatformMarket::IzPlatformMarket | ( | ) | [inline] |
CzMarket* IzPlatformMarket::getActiveMarket | ( | ) | [inline] |
unsigned int IzPlatformMarket::getSimulation | ( | ) | const [inline] |
eMarketStatus IzPlatformMarket::getStatus | ( | ) | const [inline] |
virtual int IzPlatformMarket::Init | ( | void * | id | ) | [pure virtual] |
Market intialisation.
Implemented in CzPlatformMarketTest, CzPlatformMarketTest, CzPlatformMarketAndroid, CzPlatformMarketAndroid, CzPlatformMarketiOS, and CzPlatformMarketiOS.
bool IzPlatformMarket::isAvailable | ( | ) | const [inline] |
virtual bool IzPlatformMarket::isBillingEnabled | ( | ) | [pure virtual] |
Returns true if billing enabled on device.
Implemented in CzPlatformMarketTest, CzPlatformMarketTest, CzPlatformMarketAndroid, CzPlatformMarketAndroid, CzPlatformMarketiOS, and CzPlatformMarketiOS.
bool IzPlatformMarket::isInitialised | ( | ) | const [inline] |
virtual bool IzPlatformMarket::PurchaseProduct | ( | const char * | product_id | ) | [pure virtual] |
Purchase a product.
Implemented in CzPlatformMarketTest, CzPlatformMarketTest, CzPlatformMarketAndroid, CzPlatformMarketAndroid, CzPlatformMarketiOS, and CzPlatformMarketiOS.
virtual bool IzPlatformMarket::QueryProduct | ( | const char * | product_id | ) | [pure virtual] |
Query product information.
Implemented in CzPlatformMarketTest, CzPlatformMarketTest, CzPlatformMarketAndroid, CzPlatformMarketAndroid, CzPlatformMarketiOS, and CzPlatformMarketiOS.
virtual void IzPlatformMarket::Release | ( | ) | [pure virtual] |
Market cleanup.
Implemented in CzPlatformMarketTest, CzPlatformMarketTest, CzPlatformMarketAndroid, CzPlatformMarketAndroid, CzPlatformMarketiOS, and CzPlatformMarketiOS.
virtual bool IzPlatformMarket::RestoreProducts | ( | ) | [pure virtual] |
Restore previously purchased products.
Implemented in CzPlatformMarketTest, CzPlatformMarketTest, CzPlatformMarketAndroid, CzPlatformMarketAndroid, CzPlatformMarketiOS, and CzPlatformMarketiOS.
void IzPlatformMarket::setActiveMarket | ( | CzMarket * | market | ) | [inline] |
void IzPlatformMarket::setSimulation | ( | unsigned int | sim | ) | [inline] |
void IzPlatformMarket::setStatus | ( | eMarketStatus | status | ) | [inline] |
virtual void IzPlatformMarket::Update | ( | ) | [pure virtual] |
Per frame update.
Implemented in CzPlatformMarketTest, CzPlatformMarketTest, CzPlatformMarketAndroid, CzPlatformMarketAndroid, CzPlatformMarketiOS, and CzPlatformMarketiOS.
CzMarket* IzPlatformMarket::ActiveMarket [protected] |
Currently active market.
bool IzPlatformMarket::Available [protected] |
Is available on this platform.
bool IzPlatformMarket::Initialised [protected] |
Initialised state.
unsigned int IzPlatformMarket::SimulationHash [protected] |
Name of sinulation to perform.
eMarketStatus IzPlatformMarket::Status [protected] |
Markets current status.