当前位置: 首页>>代码示例>>C++>>正文


C++ Bundle::putString方法代码示例

本文整理汇总了C++中Bundle::putString方法的典型用法代码示例。如果您正苦于以下问题:C++ Bundle::putString方法的具体用法?C++ Bundle::putString怎么用?C++ Bundle::putString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bundle的用法示例。


在下文中一共展示了Bundle::putString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: publish_story

void publish_story()
{
	LOGV("publish_story enter");
	Session *session = Session::getActiveSession();
	Bundle *postParams = new Bundle();
	postParams->putString(to_string("name"), to_string("Facebook SDK for Android"));
	postParams->putString(to_string("caption"), to_string("Build great social apps and get more installs."));
	postParams->putString(to_string("description"), to_string("The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps."));
    postParams->putString(to_string("link"), to_string("https://developers.facebook.com/android"));
    postParams->putString(to_string("picture"), to_string("https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png"));
    Request *request = new Request(*session, to_string("me/feed"), *postParams, com_facebook_HttpMethod::POST, *requestCallback);
    std::vector<Request*> requests;
    requests.push_back(request); 
    RequestAsyncTask *task = new RequestAsyncTask(requests);
    std::vector<Object*> *args = 0;
    task->execute(*args);
    delete task;
    delete request;
    delete postParams;
    delete session;
    LOGV("publish_story exit");
}
开发者ID:proxy-gen,项目名称:codegen,代码行数:22,代码来源:SessionLoginSampleCXX.cpp

示例2: run_fql_query

void run_fql_query(const char * query)
{
	LOGV("run_fql_query enter");
	String fqlQuery = to_string(query);
	Bundle *params = new Bundle();
	params->putString(to_string("q"), fqlQuery);
	Session *session = Session::getActiveSession();
	Request *request = new Request(*session, to_string("/fql"), *params, com_facebook_HttpMethod::GET, *requestCallback);
	List *requestBatch = new ArrayList();
	requestBatch->add(*request);
	Request::executeBatchAsync(*requestBatch);
	delete requestBatch;
	delete request;
	delete session;
	delete params;
	LOGV("run_fql_query exit");
}
开发者ID:proxy-gen,项目名称:codegen,代码行数:17,代码来源:SessionLoginSampleCXX.cpp

示例3: fight

void FightPrepare::fight()
{
	if (mState != Prepare_State_Loaded)
	{
		CCAssert(false,"数据还没准备好,请确认调用了prepareData函数载入数据,并且是在prepareSuccess回调接口中调用的这个函数");
		return;
	}

	Bundle bundle;
	bundle.putBool("testMode",mTestMode);
	if (!mTestMode)
	{
		bundle.putString("JumpToWhenEnd","FightEndLayer");
	}
	
	// 直接换scene
	ClientFightLayer* layer = (ClientFightLayer*)GameDirector::getDirector()->fight(mPreparedDir_vec,mCallback->getBg(mTaskId,mGridIndex),bundle);
	GameDirector::getDirector()->hideWaiting();
	layer->setBeforeFightPro(beforeFightPro);
}
开发者ID:longguai,项目名称:game-DarkWar,代码行数:20,代码来源:FightPrepare.cpp


注:本文中的Bundle::putString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。