Пример #1
0
        public static InAppMessageAction InAppMessageClickedActionToXam(OneSignalAndroid.OSInAppMessageAction action)
        {
            InAppMessageAction inAppMessageAction = new InAppMessageAction {
                clickName     = action.ClickName,
                clickUrl      = action.ClickUrl,
                firstClick    = action.IsFirstClick,
                closesMessage = action.DoesCloseMessage()
            };

            IList <InAppMessageOutcome> outcomes = new List <InAppMessageOutcome>();

            foreach (var outcome in action.Outcomes)
            {
                outcomes.Add(InAppMessageOutcomeToXam(outcome));
            }

            return(inAppMessageAction);
        }
Пример #2
0
            public void InAppMessageClicked(OneSignalAndroid.OSInAppMessageAction inAppMessageAction)
            {
                InAppMessageAction action = NativeConversion.InAppMessageClickedActionToXam(inAppMessageAction);

                _instance.InAppMessageTriggeredAction?.Invoke(action);
            }