示例#1
0
void FacebookAgent::appRequest(FBInfo& info, FBCallback cb)
{
	auto sharePlugin = agentManager->getSharePlugin();
	sharePlugin->setCallback(cb);
	PluginParam params(info);
	sharePlugin->callFuncWithParam("appRequest", &params, NULL);
}
示例#2
0
void FacebookAgent::login(std::string& permissions, FBCallback cb)
{
	auto userPlugin = agentManager->getUserPlugin();
	userPlugin->setCallback(cb);
	PluginParam _permissions(permissions.c_str());
	userPlugin->callFuncWithParam("login", &_permissions, NULL);
}
示例#3
0
void AdsObject::preloadAds(AdsType adsType, int idx)
{
	PluginParam paramAdsType(adsType);
	PluginParam paramIdx(idx);
	callFuncWithParam("preloadAds",&paramAdsType,&paramIdx,NULL);
}