|
C SDK
|
Data Structures | |
| struct | PleyUnityConf |
| struct | PleyInitParams |
| struct | Pley |
Typedefs | |
| typedef void(* | PleyDevStateCB) (int state, const char *msg) |
| typedef struct PleyUnityConf | PleyUnityConf |
| typedef struct PleyInitParams | PleyInitParams |
| typedef struct Pley | Pley |
| typedef void(* | PleyDestroy) (Pley *pley) |
| typedef void(* | PleyInitCB) (PleyResult result, Pley *pley, PleyDestroy destroy, void *callback_data) |
Functions | |
| PLEY_SDK_API PleyResult | pley_init (PleyInitParams *params, PleyInitCB callback, void *callback_data) |
| Initialize the Pley SDK, the call is blocking on non EMSCRIPTEN build. | |
| PLEY_SDK_API bool | pley_result_is_ok (PleyResult res) |
| Check if the PleyResult is OK. | |
| PLEY_SDK_API bool | pley_result_is_error (PleyResult res) |
| Check if the PleyResult an error. | |
| struct PleyInitParams |
| Data Fields | ||
|---|---|---|
| PleyUnityConf * | unity_conf | |
| struct Pley |
| Data Fields | ||
|---|---|---|
| PleyAdsKit * | ads_kit | |
| PleyAnalyticsKit * | analytics_kit | |
| PleyAuthKit * | auth_kit | |
| PleyConnectionKit * | connection_kit | |
| PleyCore * | core | |
| PleyFileKit * | file_kit | |
| PleyPaymentsKit * | payments_kit | |
| PleyPerformanceKit * | performance_kit | |
| typedef void(* PleyDestroy) (Pley *pley) |
Destroy the pley SDK, dont use the pley pointer after that
| typedef void(* PleyDevStateCB) (int state, const char *msg) |
| typedef void(* PleyInitCB) (PleyResult result, Pley *pley, PleyDestroy destroy, void *callback_data) |
| typedef struct PleyInitParams PleyInitParams |
| typedef struct PleyUnityConf PleyUnityConf |
| PLEY_SDK_API PleyResult pley_init | ( | PleyInitParams * | params, |
| PleyInitCB | callback, | ||
| void * | callback_data | ||
| ) |
Initialize the Pley SDK, the call is blocking on non EMSCRIPTEN build.
| params | SDK configuration contains the CLI address for example. |
| callback | Callback that will be called once the SDK is initialized, it can have the following errors: PLEY_RESULT_SDK_ALREADY_INITIALIZED, PLEY_RESULT_SDK_ALREADY_CREATED, PLEY_RESULT_INVALID_ARGUMENTS, |
| callback_data | Data the callback will be execute with. |
| PLEY_SDK_API bool pley_result_is_error | ( | PleyResult | res | ) |
Check if the PleyResult an error.
| res | The PleyResult to check |
| PLEY_SDK_API bool pley_result_is_ok | ( | PleyResult | res | ) |
Check if the PleyResult is OK.
| res | The PleyResult to check |