示例#1
0
        private void OnNativeDialogDismissed(IPlatformConsentDialog platformDialog)
        {
            if (Dismissed != null)
            {
                Dismissed(this);
            }

            ResignAsActiveDialog();
        }
示例#2
0
        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();
        }
示例#3
0
        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);
            }
        }