Esempio n. 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);
        }
Esempio n. 2
0
            public void InAppMessageClicked(OneSignalAndroid.OSInAppMessageAction inAppMessageAction)
            {
                InAppMessageAction action = NativeConversion.InAppMessageClickedActionToXam(inAppMessageAction);

                _instance.InAppMessageTriggeredAction?.Invoke(action);
            }