Hi team,
I created one class - Application::condition_popup_scr_update & created one method cond_popup_status(arg1, arg2) inside of this class (Application::condition_popup_scr_update)
I have created a object of the above class in global class (Application::Device) to use globally.
I have multiple component classes in my project like [Application::Homescreen, Application::MainScreen, Application::camera, Application::popup...]
I am calling the method cond_popup_status(arg1, arg2) inside one of the Component class (E.g - Application::Homescreen)periodically.
Method calling format -Application::Device.condition_popup_scr_update.cond_popup_status(arg1,arg2);
Inside of the method cond_popup_status(arg1, arg2) - I am checking some conditions & switching to one dialog (e.g - Application::camera)
i am following the below way in my method to switch the dialog: -
parent = (Core::Group)parentthis;
root = parent? parent.GetRoot() : null;
if(root)
{
root.SwitchToDialog(new Application::camera,null, null, null, null, null, null, null, null, null, false );
}
But i am getting the parent & root is always null.
Please give your solution for above problem.
One more doubt- Is there any options are available to call the method of one class from other component class without direct function call ()?