언어 설정

Menu
Sites
Language
Pass values between scenes

 

Hi :)

 

I want to pass values between "A scene" and "B scene" like putExtra() in android.

I'm using SceneManager in my code.

Is there any solution ?

 

 

Thanks,

Jenny

Responses

4 댓글
Kamil N
harish kumar kavali

try this

assume that your sending data from scene1 to scene2

create a arraylist and add the data to be sent to the list

Arraylist *pargs;

pargs->Add("data");
pSceneManager->GoForward(ForwardSceneTransition(L"scene2",SCENE_TRANSITION_ANIMATION_TYPE_LEFT),pargs);

recieve data sent from secne1 in the onSceneActivatedN() of scene2

Zia Rahman

Read the documentation of GoForward method, the third param is the list of data you want to pass between two scenes.


 

Zia Rahman
result Tizen::Ui::Scenes::SceneManager::GoForward    (	const SceneTransitionId & 	transitionId,
const Tizen::Base::Collection::IList * 	pArgs = null 
)