Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This should have the same functionality as the solution one but instead of the gadget managing the UI for enabling debugging the container does it.  Very similar to how the container can display gadget preferences.

Code Block
xml
xml

<Module>
 <ModulePrefs title="Developer Forum"
     title_url="http://groups.google.com/group/Google-Gadgets-API" 
 height="200" 
    author="Jane Smith"
     author_email="xxx@google.com">
   <Serviceability>
     <DebugModule id="org.opensocial.module1" description="this is a very important module"/>
     <DebugModule id="org.opensocial.module2" description="this is a semi-important module"/>
   </Serviceability>
 </ModulePrefs>
  <Content ...>
 ... content ...
 </Content>

</Module>

APIs

String gadgets.isDebug()

...

Sets the description for the debug module.

boolean gadgets.DebugModule.isEnabled()

Description

Indicates whether debugging is enabled for the module.

Returns

True if debugging is enabled for the module, false otherwise.