Exemplo n.º 1
0
            public void Settings(WebView webView, NameValueCollection parameters)
            {
                _currentSettings.Populate(parameters);
                _currentSettings.Save();

                if (!string.IsNullOrEmpty(parameters["silent"]))
                {
                    return;
                }
                var template = new SettingsView()
                {
                    Model = _currentSettings
                };
                var page = template.GenerateString();

                webView.LoadDataWithBaseURL("file:///android_asset/?page=Settings", page, "text/html", "UTF-8", null);
            }