Jump to: navigation, search

Other APIs

Revision as of 14:42, 22 October 2014 by Huangyanli (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Get the channel ID

std::string getChannelId(); Developers can get the current channel ID, and operate relevant logics. Direction:

std::string channelID = AgentManager::getInstance()->getChannelId();

Get the custom param of channels

std::string getCustomParam(); Developers can get the channel custom parameters given by package tools. Direction:

std::string customParam = AgentManager::getInstance()->getCustomParam();

Get the SDK version

std::string getSDKVersion(); By this method, developers can get the current SDK version number.

Get the plugin version

std::string getPluginVersion(); By this method, developers can get the current plugin version number.

Set debug mode

void setDebugMode(bool bDebug); By default it shows false. If it turns into true, start the SDK debug mode and start the log.