Exemplo n.º 1
0
        partial void GetVisitorIdentifier(UIButton sender)
        {
            var callback = new Action <NSString>(handleCallback);

            ACPAnalytics.GetVisitorIdentifier(callback);
            Console.WriteLine("GetVisitorIdentifier: Completed");
        }
 public TaskCompletionSource <string> GetVisitorIdentifier()
 {
     stringOutput = new TaskCompletionSource <string>();
     ACPAnalytics.GetVisitorIdentifier(new StringCallback());
     stringOutput.SetResult("");
     return(stringOutput);
 }
Exemplo n.º 3
0
        public TaskCompletionSource <string> GetVisitorIdentifier()
        {
            stringOutput = new TaskCompletionSource <string>();
            var callback = new Action <NSString>(handleCallback);

            ACPAnalytics.GetVisitorIdentifier(callback);
            stringOutput.SetResult("");
            return(stringOutput);
        }
        public void GetCustomVisitorIdentifier_Gets_PreviouslySetCustomVisitorIdentifier()
        {
            // setup
            latch = new CountdownEvent(1);
            var expectedIdentifier = "someVisitorIdentifier";

            ACPAnalytics.SetVisitorIdentifier(expectedIdentifier);
            // test
            ACPAnalytics.GetVisitorIdentifier(new VisitorIdentifierCallback());
            latch.Wait();
            latch.Dispose();
            // verify
            Assert.That(retrievedVisitorIdentifier, Is.EqualTo(expectedIdentifier));
        }
        public void GetCustomVisitorIdentifier_Gets_PreviouslySetCustomVisitorIdentifier()
        {
            // setup
            var    latch = new CountdownEvent(1);
            string retrievedIdentifier = "";
            string expectedIdentifier  = "someVisitorIdentifier";

            ACPAnalytics.SetVisitorIdentifier(expectedIdentifier);
            // test
            ACPAnalytics.GetVisitorIdentifier(callback =>
            {
                retrievedIdentifier = callback.ToString();
                latch.Signal();
            });
            latch.Wait();
            latch.Dispose();
            // verify
            Assert.That(retrievedIdentifier, Is.EqualTo(expectedIdentifier));
        }
Exemplo n.º 6
0
 void GetVisitorIdentifier()
 {
     Debug.Log("Calling getVisitorIdentifier");
     ACPAnalytics.GetVisitorIdentifier(HandleAdobeGetVisitorIdentifierCallback);
 }