NIM Cocos2d-x SDK  2.2.0
Public Types | Static Public Member Functions | List of all members
nim::DataSync Class Reference

NIM SDK提供的数据同步相关接口 More...

#include <nim_cpp_data_sync.h>

Public Types

typedef std::function< void(nim::NIMDataSyncType sync_type, nim::NIMDataSyncStatus status, const std::string &data_sync_info)> DataSyncCallback
 

Static Public Member Functions

static void RegCompleteCb (const DataSyncCallback &cb)
 
static void UnregDataSyncCb ()
 

Detailed Description

NIM SDK提供的数据同步相关接口

Member Typedef Documentation

◆ DataSyncCallback

typedef std::function<void(nim::NIMDataSyncType sync_type, nim::NIMDataSyncStatus status, const std::string &data_sync_info)> nim::DataSync::DataSyncCallback

数据同步通知回调模板

Member Function Documentation

◆ RegCompleteCb()

static void nim::DataSync::RegCompleteCb ( const DataSyncCallback cb)
static

(全局回调)注册数据同步完成的回调函数

Parameters
[in]cb数据同步完成的回调函数
Returns
void 无返回值

◆ UnregDataSyncCb()

void nim::DataSync::UnregDataSyncCb ( )
static

反注册DataSync提供的所有回调

Returns
void 无返回值

The documentation for this class was generated from the following file: