C SDK
Loading...
Searching...
No Matches
Pley

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.
PLEY_SDK_API const char * pley_sdk_get_version ()
 Returns the the sdk version.

Detailed Description


Data Structure Documentation

◆ PleyUnityConf

struct PleyUnityConf
Data Fields
const char unity_version[64]

◆ PleyInitParams

struct PleyInitParams
Data Fields
PleyUnityConf * unity_conf

◆ Pley

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 Documentation

◆ Pley

typedef struct Pley Pley

◆ PleyDestroy

typedef void(* PleyDestroy) (Pley *pley)

Destroy the pley SDK, dont use the pley pointer after that

◆ PleyDevStateCB

typedef void(* PleyDevStateCB) (int state, const char *msg)

◆ PleyInitCB

typedef void(* PleyInitCB) (PleyResult result, Pley *pley, PleyDestroy destroy, void *callback_data)

◆ PleyInitParams

typedef struct PleyInitParams PleyInitParams

◆ PleyUnityConf

typedef struct PleyUnityConf PleyUnityConf

Function Documentation

◆ pley_init()

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.

Parameters
paramsSDK configuration contains the CLI address for example.
callbackCallback 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_dataData the callback will be execute with.
Returns
Can return the following error: PLEY_RESULT_INVALID_ARGUMENTS, PLEY_RESULT_SDK_ALREADY_CREATED

◆ pley_result_is_error()

PLEY_SDK_API bool pley_result_is_error ( PleyResult res)

Check if the PleyResult an error.

Parameters
resThe PleyResult to check

◆ pley_result_is_ok()

PLEY_SDK_API bool pley_result_is_ok ( PleyResult res)

Check if the PleyResult is OK.

Parameters
resThe PleyResult to check

◆ pley_sdk_get_version()

PLEY_SDK_API const char * pley_sdk_get_version ( )

Returns the the sdk version.