In this blog we see that how we can switch from one application to another application in Netgem. You can get the list of applications running in the STB using NGM.application.typeListGet().
var list = NGM.application.typeListGet();
NGM.dump(list);
Use application type and open method.
Second parameter is an object that defines options and may depend on type.
For example, app.html template uses url in options to determine application source (here we start the application again !)
if (type == "app.html") {
return NGM.application.open(type, {'title': 'My application', "url": location.url});
}
if(type === "setup.standalone") {
//Random setting panel displayed for tutorial purpose
type += "?menu=setupSimpleFormatTV&nozap=1";
}
return NGM.application.open(type, {'title': 'My application'});
For this example you can switch from one application to another by writing single one application.
Thanks
Raman Joshi
Email - [email protected]
More From Oodles
Prahalad Singh Ranawat | 18-Nov-2024
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Raman Joshi
Raman is a bright web app developer with experience in Java , Groovy and Grails frameworks