static Main() { settings_service_component.Name = "com.teknision.android.chameleon.settingsswitchservice.SettingsService"; settings_service_component.Package = "com.chameleonlauncher.preorder"; settings_service_component.Type = "service"; _root = jQuery.Select("#chameleon-widget"); jQuery.OnDocumentReady(delegate() { WidgetOptions wop = new WidgetOptions(); wop.OnLoad = delegate() { if (DependencyExists()) { UpdateSwitchStates(); } else { DisplayNoDependencyError(); } }; wop.OnResume = delegate() { if (DependencyExists()) { UpdateSwitchStates(); } else { DisplayNoDependencyError(); } }; wop.OnTitleBar = delegate() { jQuery.Select("#chameleon-widget").Append("we are live"); LaunchGlobalSettings(null); }; wop.NotChameleon = delegate() { DrawSwitches(null); }; Chameleon.Widget(wop); }); }
/// <summary> /// Initialises the current page as a widget. Should only be called once per page /// </summary> /// <param name="options">Options used to initialise the widget</param> public static void Widget(WidgetOptions options) { return; }