private void OnNativeDialogDismissed(IPlatformConsentDialog platformDialog) { if (Dismissed != null) { Dismissed(this); } ResignAsActiveDialog(); }
private void OnNativeDialogCompleted(IPlatformConsentDialog platformDialog, string buttonId, Dictionary <string, bool> toggles) { var results = new CompletedResults(); results.buttonId = buttonId; results.toggleValues = toggles; if (Completed != null) { Completed(this, results); } ResignAsActiveDialog(); }
private void OnNativeToggleStateUpdated(IPlatformConsentDialog platformDialog, string toggleId, bool isOn) { // Update the state of the managed counterpart. var toggle = FindToggleWithId(toggleId); if (toggle != null) { toggle.IsOn = isOn; } // Fire event. if (ToggleStateUpdated != null) { ToggleStateUpdated(this, toggleId, isOn); } }