I¹m working on this user preferences ui. I have the need to listen for a view change request. For example my chrome has a dropdown with all the views supported by the gadget listed as well as a preferences view added (even if the gadget doesn¹t support it). Now I want to know when the preferences option is chosen.
I tried a couple of things. 1. setup a onNavigated lifecycle listener. This gets called, but since my gadget doesn¹t have the preferences view it get a siteHolder.view of default. Is there a way to find the originally requested view? 2. I setup a container.config_[osapi.container.ContainerConfig.NAVIGATE_CALLBACK] (like the SET_PREFERENCES, etc.). I must be missing something here, cuz I don¹t seem to be getting called. 3. register a requestNavigateTo rpc function. This gets called, but only when the gadget is requesting navigation, not my container. Ideas on my best approach here? doug
