Ejemplo n.º 1
0
 public static void ShowAppMessage(AppMessage arg0, string message)
 {
     TestTip.Inst.ShowText(message);
     TestTip.Inst.ShowText($"id: {arg0.getId()}");
     TestTip.Inst.ShowText($"start time: {arg0.getStartTime()}");
     TestTip.Inst.ShowText($"end time: {arg0.getEndTime()}");
     TestTip.Inst.ShowText($"frequency type: {arg0.getFrequencyType()}");
 }
Ejemplo n.º 2
0
    // show message and add callback
    public void ShowMessage(AppMessage message, AGConnectAppMessagingCallback callback)
    {
        panel.SetActive(true);
        if (message != null)
        {
            description.text = $"{message.getId()}";
        }

        if (callback != null)
        {
            clickAction = () =>
            {
                callback.onMessageClick(message);
            };
            click.onClick.AddListener(clickAction);

            dismissAction = () =>
            {
                callback.onMessageDismiss(message, AGConnectAppMessagingCallback.DismissType.CLICK);
            };
            dismiss.onClick.AddListener(dismissAction);
        }
    }