public void TestOpenUrlWithSceneCallback()
 {
     InAppMessaging.OnOpenUrlWithScene += HandleOpenUrlWithScene;
     InAppMessaging.InvokeOpenUrlWithSceneHandler("https://example.com/1", "scene1");
     InAppMessaging.OnOpenUrlWithScene -= HandleOpenUrlWithScene;
     InAppMessaging.InvokeOpenUrlWithSceneHandler("https://example.com/2", "scene2");
 }
 public void TestOpenUrlCallback()
 {
     InAppMessaging.OnOpenUrl += handleOpenUrl;
     InAppMessaging.InvokeOpenUrlHandler("https://example.com/1");
     InAppMessaging.OnOpenUrl -= handleOpenUrl;
     InAppMessaging.InvokeOpenUrlHandler("https://example.com/2");
 }
Exemple #3
0
        public async void OnDismissClick()
        {
            await Task.Delay(10 * 1000);

            if (InAppMessaging.isPresenting)
            {
                InAppMessaging.dismiss();
            }
        }
Exemple #4
0
 private void setButtons()
 {
     SetButtonsDelegate(Resource.Id.buttonIdentify, (button) =>
     {
         Tracker.Identify("test-user", new Dictionary <string, object>()
         {
             { "name", "sample-name" }
         });
     });
     SetButtonsDelegate(Resource.Id.buttonView, (button) =>
     {
         Tracker.View("banner");
     });
     SetButtonsDelegate(Resource.Id.buttonTrack, (button) =>
     {
         Tracker.Track("favorite", new Dictionary <string, object>()
         {
             { "id", "P00003" },
             { "name", "ミネラルウォーター(500ml)" },
             { "price", "100" }
         });
         Tracker.Track("buy", new Dictionary <string, object>()
         {
             { "name", "sample-name" }
         }, (isSuccess) =>
         {
             System.Diagnostics.Debug.WriteLine("TrackingTask isSuccess: " + isSuccess);
         });
     });
     SetButtonsDelegate(Resource.Id.buttonPush, (button) =>
     {
         Tracker.View("push_text", "push_text", new Dictionary <string, object>()
         {
             { "name", "sample-name" }
         });
     });
     SetButtonsDelegate(Resource.Id.buttonUserSync, (button) =>
     {
         UserSyncTest();
     });
     SetButtonsDelegate(Resource.Id.buttonOptOut, (button) =>
     {
         KarteApp.OptOut();
     });
     SetButtonsDelegate(Resource.Id.buttonOptIn, (button) =>
     {
         KarteApp.OptIn();
     });
     SetButtonsDelegate(Resource.Id.buttonRenewVisitorId, (button) =>
     {
         KarteApp.RenewVisitorId();
     });
     SetButtonsDelegate(Resource.Id.buttonIsPresenting, (button) =>
     {
         System.Diagnostics.Debug.WriteLine("IsPresenting: " + InAppMessaging.IsPresenting);
     });
     SetButtonsDelegate(Resource.Id.buttonDismiss, (button) =>
     {
         InAppMessaging.Dismiss();
     });
     SetButtonsDelegate(Resource.Id.buttonSuppress, (button) =>
     {
         InAppMessaging.Suppress();
     });
     SetButtonsDelegate(Resource.Id.buttonUnsuppress, (button) =>
     {
         InAppMessaging.Unsuppress();
     });
     SetButtonsDelegate(Resource.Id.buttonFetch, (button) =>
     {
         FetchVariables();
     });
 }
 public void TestDismiss()
 {
     InAppMessaging.dismiss();
 }
Exemple #6
0
 public void onUnsupressClick()
 {
     InAppMessaging.unsuppress();
 }
Exemple #7
0
 public void onSupressClick()
 {
     InAppMessaging.suppress();
 }