예제 #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Adobe Mobile SDK - enable debug logging
            ADBMobile.SetDebugLogging(true);

            return(true);
        }
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            ADBMobile.SetDebugLogging(true);

            return(true);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            NSDictionary cData = NSDictionary.FromObjectAndKey(NSObject.FromObject("val1"), NSObject.FromObject("key1"));

            ADBMobile.collectLifecycleDataWithAdditionalData(cData);

            table = new UITableView(View.Bounds);             // defaults to Plain style
            string[] tableItems = new string[] {
                //config
                "version",
                "privacyStatus",
                "setPrivacyStatus - in",
                "setPrivacyStatus - out",
                "setPrivacyStatus - unknown",
                "lifetimeValue",
                "userIdentifier",
                "setUserIdentifier",
                "debugLogging",
                "setDebugLogging - true",
                "setDebugLogging - false",
                "keepLifecycleSessionAlive",
                //Analytics
                "trackState",
                "trackAction",
                "trackActionFromBackground",
                "trackLocation",
                "trackBeacon",
                "trackingClearCurrentBeacon",
                "trackLifetimeValueIncrease",
                "trackTimedActionStart",
                "trackTimedActionUpdate",
                "trackTimedActionEnd",
                "trackingTimedActionExists",
                "trackingIdentifier",
                "trackingSendQueuedHits",
                "trackingClearQueue",
                "trackingGetQueueSize",
                //Media
                "mediaCreateSettingsWithName",
                "mediaAdCreateSettingsWithName",
                "mediaOpenWithSettings",
                "mediaClose",
                "mediaPlay",
                "mediaComplete",
                "mediaStop",
                "mediaClick",
                "mediaTrack",
                //Target
                "targetLoadRequest",
                "targetCreateRequestWithName",
                "targetCreateOrderConfirmRequestWithName",
                "targetClearCookies",
                //AAM
                "audienceVisitorProfile",
                "audienceDpid",
                "audienceDpuuid",
                "audienceSetDpid",
                "audienceSignalWithData",
                "audienceReset",
                "visitorMarketingCloudID",
                "visitorSyncIdentifiers",
            };

            table.Source = new TableSource(tableItems);
            Add(table);
            // Perform any additional setup after loading the view, typically from a nib.
        }
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                switch (indexPath.Row)
                {
//							"version",
//							"privacyStatus",
//							"setPrivacyStatus - in",
//							"setPrivacyStatus - out",
//							"setPrivacyStatus - unknown",
//							"lifetimeValue",
//							"userIdentifier",
//							"setUserIdentifier",
//							"debugLogging",
//							"setDebugLogging - true",
//							"setDebugLogging - false",
//							"keepLifecycleSessionAlive",
                case 0:
                    new UIAlertView("Version", ADBMobile.Version(), null, "OK", null).Show();
                    break;

                case 1:
                    new UIAlertView("PrivacyStatus", ADBMobile.PrivacyStatus().ToString(), null, "OK", null).Show();
                    break;

                case 2:
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.OptIn);
                    break;

                case 3:
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.OptOut);
                    break;

                case 4:
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.Unknown);
                    break;

                case 5:
                    new UIAlertView("LifetimeValue", ADBMobile.LifetimeValue().ToString(), null, "OK", null).Show();
                    break;

                case 6:
                    new UIAlertView("UserIdentifier", ADBMobile.UserIdentifier(), null, "OK", null).Show();
                    break;

                case 7:
                    ADBMobile.SetUserIdentifier("customUserIdentifier");
                    break;

                case 8:
                    new UIAlertView("DebugLogging", ADBMobile.DebugLogging().ToString(), null, "OK", null).Show();
                    break;

                case 9:
                    ADBMobile.SetDebugLogging(true);
                    break;

                case 10:
                    ADBMobile.SetDebugLogging(false);
                    break;

                case 11:
                    ADBMobile.KeepLifecycleSessionAlive();
                    break;

                //Analytics
                //				"trackBeacon",
                //				"trackingClearCurrentBeacon",
                //				"trackLifetimeValueIncrease",
                //				"trackTimedActionStart",
                //				"trackTimedActionUpdate",
                //				"trackTimedActionEnd",
                //				"trackingTimedActionExists",
                //				"trackingIdentifier",
                //				"trackingSendQueuedHits",
                //				"trackingClearQueue",
                //				"trackingGetQueueSize",
                case 12:
                    //				"trackState",
                    ADBMobile.TrackState("stateName", cData);
                    break;

                case 13:
                    //				"trackAction",
                    ADBMobile.TrackAction("actionName", cData);
                    break;

                case 14:
                    //				"trackActionFromBackground",
                    ADBMobile.TrackActionFromBackground("actionNameFromBackground", cData);
                    break;

                case 15:
                    //				"trackLocation",
                    CoreLocation.CLLocation l = new CoreLocation.CLLocation(111.111, 44.156);
                    ADBMobile.TrackLocation(l, null);
                    break;

                case 16:
                    CoreLocation.CLBeacon b = new CoreLocation.CLBeacon();
                    b.SetValueForKey(new NSNumber(1), new NSString("major"));
                    b.SetValueForKey(new NSNumber(1), new NSString("minor"));
                    b.SetValueForKey(new NSNumber(1), new NSString("proximity"));
                    b.SetValueForKey(new NSUuid("5a2bf809-992f-42c2-8590-6793ecbe2437"), new NSString("proximityUUID"));

                    ADBMobile.TrackBeacon(b, null);
                    break;

                case 17:
                    ADBMobile.TrackingClearCurrentBeacon();
                    break;

                case 18:
                    ADBMobile.TrackLifetimeValueIncrease(new NSDecimalNumber(10.4), cData);
                    break;

                case 19:
                    ADBMobile.TrackTimedActionStart("timedAction", cData);
                    break;

                case 20:
                    NSDictionary updatedData = NSDictionary.FromObjectAndKey(NSObject.FromObject("val2"), NSObject.FromObject("key2"));
                    ADBMobile.TrackTimedActionUpdate("timedAction", updatedData);
                    break;

                case 21:
                    ADBMobile.TrackTimedActionEnd("timedAction", (double arg1, double arg2, NSMutableDictionary arg3) => {
                        return(true);
                    });
                    break;

                case 22:
                    new UIAlertView("TrackingTimedActionExists", ADBMobile.TrackingTimedActionExists("timedAction").ToString(), null, "OK", null).Show();
                    break;

                case 23:
                    new UIAlertView("TrackingIdentifier", ADBMobile.TrackingIdentifier(), null, "OK", null).Show();
                    break;

                case 24:
                    ADBMobile.TrackingSendQueuedHits();
                    break;

                case 25:
                    ADBMobile.TrackingClearQueue();
                    break;

                case 26:
                    new UIAlertView("TrackingGetQueueSize", ADBMobile.TrackingGetQueueSize().ToString(), null, "OK", null).Show();
                    break;

                //					//Media
                //					"mediaCreateSettingsWithName",
                case 27:
                    settings            = ADBMobile.MediaCreateSettings("name1", 10, "playerName1", "playerID1");
                    settings.Milestones = "25,50,75";
                    break;

                //					"mediaAdCreateSettingsWithName",
                case 28:
                    ADBMediaSettings adSettings = ADBMobile.MediaAdCreateSettings("adName1", 2, "playerName1", "name1", "podName1", 4, "CPM1");
                    break;

                //					"mediaOpenWithSettings",
                case 29:
                    ADBMobile.MediaOpenWithSettings(settings, (state) => {
                        Console.WriteLine(state.Name);
                    });
                    break;

                //					"mediaClose",
                case 30:
                    ADBMobile.MediaClose(settings.Name);
                    break;

                //					"mediaPlay",
                case 31:
                    ADBMobile.MediaPlay(settings.Name, 0);
                    break;

                //					"mediaComplete",
                case 32:
                    ADBMobile.MediaComplete(settings.Name, 5);
                    break;

                //					"mediaStop",
                case 33:
                    ADBMobile.MediaStop(settings.Name, 3);
                    break;

                //					"mediaClick",
                case 34:
                    ADBMobile.MediaClick(settings.Name, 3);
                    break;

                //					"mediaTrack",
                case 35:
                    ADBMobile.MediaTrack(settings.Name, null);
                    break;

                //					//Target
                //					"targetLoadRequest",
                case 36:
                    ADBMobile.TargetLoadRequest(req, (context) => {
                        Console.WriteLine(context);
                    });
                    break;

                //					"targetCreateRequestWithName",
                case 37:
                    NSDictionary dict = NSDictionary.FromObjectAndKey(NSObject.FromObject("value2"), NSObject.FromObject("key1"));
                    req = ADBMobile.TargetCreateRequest("iOSTest", "defGal", dict);
                    break;

                //					"targetCreateOrderConfirmRequestWithName",
                case 38:
                    ADBMobile.TargetCreateOrderConfirmRequest("myOrder", "12345", "29.41", "cool stuff", null);
                    break;

                //					"targetClearCookies",
                case 39:
                    ADBMobile.TargetClearCookies();
                    break;

                //					//AAM
                //					"audienceVisitorProfile",
                case 40:
                    new UIAlertView("AudienceVisitorProfile", ADBMobile.AudienceVisitorProfile().ToString(), null, "OK", null).Show();
                    break;

                case 41:
                    //					"audienceDpid",
                    new UIAlertView("AudienceDpid", ADBMobile.AudienceDpid(), null, "OK", null).Show();
                    break;

                case 42:
                    //					"audienceDpuuid",
                    new UIAlertView("AudienceDpuuid", ADBMobile.AudienceDpuuid(), null, "OK", null).Show();
                    break;

                case 43:
                    //					"audienceSetDpid",
                    ADBMobile.AudienceSetDpidAndDpuuid("testDppid", "testDpuuid");
                    break;

                //					"audienceSignalWithData",
                case 44:
                    //					"audienceReset",
                    ADBMobile.AudienceReset();
                    break;

                case 45:
                    //					"visitorMarketingCloudID",
                    new UIAlertView("VisitorMarketingCloudID", ADBMobile.VisitorMarketingCloudID(), null, "OK", null).Show();
                    break;

                case 46:
                    //					"visitorSyncIdentifiers",
                    NSDictionary vidDict = NSDictionary.FromObjectAndKey(NSObject.FromObject("value2"), NSObject.FromObject("pushID"));
                    ADBMobile.VisitorSyncIdentifiers(vidDict);
                    break;
                }

                tableView.DeselectRow(indexPath, true);                  // normal iOS behaviour is to remove the blue highlight
            }
 partial void UIButton5_TouchUpInside(UIButton sender)
 {
     ADBMobile.TrackState("test", null);
 }
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                Console.WriteLine("Row value " + indexPath);

                switch (indexPath.Row)
                {
                //							Config
                //							"version",
                //							"privacyStatus",
                //							"setPrivacyStatus - in",
                //							"setPrivacyStatus - out",
                //							"setPrivacyStatus - unknown",
                //							"lifetimeValue",
                //							"userIdentifier",
                //							"setUserIdentifier",
                //							"debugLogging",
                //							"setDebugLogging - true",
                //							"setDebugLogging - false",
                //							"keepLifecycleSessionAlive",
                case 0:
                    new UIAlertView("Version", ADBMobile.Version(), null, "OK", null).Show();
                    break;

                case 1:
                    new UIAlertView("PrivacyStatus", ADBMobile.PrivacyStatus().ToString(), null, "OK", null).Show();
                    break;

                case 2:
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.OptIn);
                    break;

                case 3:
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.OptOut);
                    break;

                case 4:
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.Unknown);
                    break;

                case 5:
                    new UIAlertView("LifetimeValue", ADBMobile.LifetimeValue().ToString(), null, "OK", null).Show();
                    break;

                case 6:
                    new UIAlertView("UserIdentifier", ADBMobile.UserIdentifier(), null, "OK", null).Show();
                    break;

                case 7:
                    ADBMobile.SetUserIdentifier("customUserIdentifier");
                    break;

                case 8:
                    new UIAlertView("DebugLogging", ADBMobile.DebugLogging().ToString(), null, "OK", null).Show();
                    break;

                case 9:
                    ADBMobile.SetDebugLogging(true);
                    break;

                case 10:
                    ADBMobile.SetDebugLogging(false);
                    break;

                case 11:
                    ADBMobile.KeepLifecycleSessionAlive();
                    break;

                //	Analytics
                case 12:                        //				"trackState",
                    ADBMobile.TrackState("stateName", cData);
                    break;

                case 13:                        //				"trackAction",
                    ADBMobile.TrackAction("actionName", cData);
                    break;

                case 14:                        //				"trackActionFromBackground",
                    ADBMobile.TrackActionFromBackground("actionNameFromBackground", cData);
                    break;

                case 15:                         //				"trackLocation",
                    CoreLocation.CLLocation l = new CoreLocation.CLLocation(111.111, 44.156);
                    ADBMobile.TrackLocation(l, null);
                    break;

                case 16:                         //				"trackBeacon", //doesn't work on iOS 10
                                                 //CoreLocation.CLBeacon b = new CoreLocation.CLBeacon();
                                                 //b.SetValueForKey(new NSNumber(1), new NSString("major"));
                                                 //b.SetValueForKey(new NSNumber(1), new NSString("minor"));
                                                 //b.SetValueForKey(new NSNumber(1), new NSString("proximity"));
                                                 //b.SetValueForKey(new NSUuid("5a2bf809-992f-42c2-8590-6793ecbe2437"), new NSString("proximityUUID"));

                    //ADBMobile.TrackBeacon(b, null);
                    break;

                case 17:                         // trackingClearCurrentBeacon
                    ADBMobile.TrackingClearCurrentBeacon();
                    break;

                case 18:                         // trackLifetimeValueIncrease
                    ADBMobile.TrackLifetimeValueIncrease(new NSDecimalNumber(10.4), cData);
                    break;

                case 19:                         // trackTimedActionStart
                    ADBMobile.TrackTimedActionStart("timedAction", cData);
                    break;

                case 20:                         // trackTimedActionUpdate
                    NSDictionary updatedData = NSDictionary.FromObjectAndKey(NSObject.FromObject("val2"), NSObject.FromObject("key2"));
                    ADBMobile.TrackTimedActionUpdate("timedAction", updatedData);
                    break;

                case 21:                         // trackTimedActionEnd
                    ADBMobile.TrackTimedActionEnd("timedAction", (double arg1, double arg2, NSMutableDictionary arg3) =>
                    {
                        return(true);
                    });
                    break;

                case 22:                         // trackTimedActionExists
                    new UIAlertView("TrackingTimedActionExists", ADBMobile.TrackingTimedActionExists("timedAction").ToString(), null, "OK", null).Show();
                    break;

                case 23:                         // trackIdentifier
                    new UIAlertView("TrackingIdentifier", ADBMobile.TrackingIdentifier(), null, "OK", null).Show();
                    break;

                case 24:                         // trackSendQueuedHits
                    ADBMobile.TrackingSendQueuedHits();
                    break;

                case 25:                         // trackingClearQueue
                    ADBMobile.TrackingClearQueue();
                    break;

                case 26:                         // trackingGetQueueSize
                    new UIAlertView("TrackingGetQueueSize", ADBMobile.TrackingGetQueueSize().ToString(), null, "OK", null).Show();
                    break;

                //	Media
                case 27:                         // mediaCreateSettingsWithName
                    settings            = ADBMobile.MediaCreateSettings("name1", 10, "playerName1", "playerID1");
                    settings.Milestones = "25,50,75";
                    break;

                case 28:                         // mediaAdCreateSettingsWithName
                    ADBMobile.MediaAdCreateSettings("adName1", 2, "playerName1", "name1", "podName1", 4, "CPM1");
                    break;

                case 29:                         // mediaOpenWithSettings
                    ADBMobile.MediaOpenWithSettings(settings, (state) =>
                    {
                        Console.WriteLine(state.Name);
                    });
                    break;

                case 30:                         //	mediaClose
                    if (settings.Name != null)
                    {
                        ADBMobile.MediaClose(settings.Name);
                    }
                    break;

                case 31:                         //	mediaPlay
                    if (settings.Name != null)
                    {
                        ADBMobile.MediaPlay(settings.Name, 0);
                    }
                    break;

                case 32:                         // mediaComplete
                    if (settings.Name != null)
                    {
                        ADBMobile.MediaComplete(settings.Name, 5);
                    }
                    break;

                case 33:                         // mediaStop
                    if (settings.Name != null)
                    {
                        ADBMobile.MediaStop(settings.Name, 3);
                    }
                    break;

                case 34:                         // mediaClick
                    if (settings.Name != null)
                    {
                        ADBMobile.MediaClick(settings.Name, 3);
                    }
                    break;

                case 35:                         // mediaTrack
                    if (settings.Name != null)
                    {
                        ADBMobile.MediaTrack(settings.Name, null);
                    }
                    break;

                // Target
                case 36:                         //	targetLoadRequest
                    ADBMobile.TargetLoadRequest(req, (context) =>
                    {
                        Console.WriteLine(context);
                    });
                    break;

                case 37:                         //					"targetCreateRequestWithName",
                    NSDictionary dict = NSDictionary.FromObjectAndKey(NSObject.FromObject("value2"), NSObject.FromObject("key1"));
                    req = ADBMobile.TargetCreateRequest("iOSTest", "defGal", dict);
                    break;

                case 38:                         //					"targetCreateOrderConfirmRequestWithName",
                    ADBMobile.TargetCreateOrderConfirmRequest("myOrder", "12345", "29.41", "cool stuff", null);
                    break;

                case 39:                         //					"targetClearCookies",
                    ADBMobile.TargetClearCookies();
                    break;

                // AAM
                case 40:                         //					"audienceVisitorProfile",
                    new UIAlertView("AudienceVisitorProfile", ADBMobile.AudienceVisitorProfile() != null ? ADBMobile.AudienceVisitorProfile().ToString() : "null", null, "OK", null).Show();
                    break;

                case 41:                         //					"audienceDpid",
                    new UIAlertView("AudienceDpid", ADBMobile.AudienceDpid(), null, "OK", null).Show();
                    break;

                case 42:                         //					"audienceDpuuid",
                    new UIAlertView("AudienceDpuuid", ADBMobile.AudienceDpuuid(), null, "OK", null).Show();
                    break;

                case 43:                         //					"audienceSetDpid",
                    ADBMobile.AudienceSetDpidAndDpuuid("testDppid", "testDpuuid");
                    break;

                case 44:                         //					"audienceSignalWithData",
                    //					"audienceReset",
                    ADBMobile.AudienceReset();
                    break;

                case 45:
                    //					"visitorMarketingCloudID",
                    new UIAlertView("VisitorMarketingCloudID", ADBMobile.VisitorMarketingCloudID(), null, "OK", null).Show();
                    break;

                case 46:
                    //					"visitorSyncIdentifiers",
                    NSDictionary vidDict = NSDictionary.FromObjectAndKey(NSObject.FromObject("value2"), NSObject.FromObject("pushID"));
                    ADBMobile.VisitorSyncIdentifiers(vidDict);
                    break;

                case 47:                         // "setAdvertisingIdentifier",
                    ADBMobile.SetAdvertisingIdentifier("testAdid");
                    break;

                case 48:                         // "setPushIdentifier",
                    ADBMobile.SetPushIdentifier(NSData.FromString("testPushId"));
                    break;

                case 49:                         // "setAppGroup",
                    ADBMobile.SetAppGroup("testAppGroup");
                    break;

                case 50:                         // "setAppExtensionType"
                    ADBMobile.SetAppExtensionType(ADBMobileAppExtensionType.Regular);
                    break;

                case 51:                         // "registerAdobeDataCallback"
                    ADBMobile.RegisterAdobeDataCallback((adobeMobileDataEvent, callbackData) =>
                    {
                        Console.WriteLine("event: " + adobeMobileDataEvent + "\ndata: " + callbackData);
                    });
                    break;

                case 52:                         // "trackPushMessageClickthrough"
                    ADBMobile.TrackPushMessageClickThrough(NSDictionary.FromObjectAndKey(NSObject.FromObject("97f8db20-bb28-4c1a-8cda-78c6ba98f87d"), NSObject.FromObject("adb_m_id")));
                    break;

                case 53:                         // "trackLocalNotificationClickthrough"
                    ADBMobile.TrackLocalNotificationClickThrough(NSDictionary.FromObjectAndKey(NSObject.FromObject("97f8db20-bb28-4c1a-8cda-78c6ba98f87d"), NSObject.FromObject("adb_m_id")));
                    break;

                case 54:                         // "trackAdobeDeepLink"
                    ADBMobile.TrackAdobeDeepLink(NSUrl.FromString("https://adobe.com?a.deeplink.id=12345678"));
                    break;

                case 55:                         // "acquisitionCampaignStartForApp"
                    ADBMobile.AcquisitionCampaignStartForApp("com.adobe.test", NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")));
                    break;

                case 56:                         // "targetLoadRequestWithRequestLocation"
                    ADBMobile.TargetLoadRequest("someMbox",
                                                "defaultContent",
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                (context) =>
                    {
                        Console.WriteLine(context);
                    });
                    break;

                case 57:                         // "targetThirdPartyId"
                    new UIAlertView("target thirdPartyId", ADBMobile.TargetThirdPartyID(), null, "OK", null).Show();
                    break;

                case 58:                         // "targetSetThirdPartyId"
                    ADBMobile.TargetSetThirdPartyID("testThirdPartyId");
                    break;

                case 59:                         // "targetPcID"
                    new UIAlertView("target PcID", ADBMobile.TargetPcID(), null, "OK", null).Show();
                    break;

                case 60:                         // "targetSessionID"
                    new UIAlertView("target SessionID", ADBMobile.TargetSessionID(), null, "OK", null).Show();
                    break;

                case 61:                         // "visitorSyncIdentifiers"
                    ADBMobile.VisitorSyncIdentifier("idType", "identifier0", ADBMobileVisitorAuthenticationState.Authenticated);
                    break;

                case 62:                         // "visitorSyncIdentifiersAuthState"
                    ADBMobile.VisitorSyncIdentifiers(NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")));
                    break;

                case 63:                         // "visitorSyncIdentifierWithTypeAuthState"
                    ADBMobile.VisitorSyncIdentifiers(NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")), ADBMobileVisitorAuthenticationState.Unknown);
                    break;

                case 64:                         // "visitorGetIDs"
                    new UIAlertView("visitor ids", ADBMobile.VisitorGetIDs().ToString(), null, "OK", null).Show();
                    break;

                case 65:                         // "visitorAppendToURL"
                    new UIAlertView("visitor appendToURL", ADBMobile.VisitorAppendToURL(NSUrl.FromString("https://adobe.com")).ToString(), null, "OK", null).Show();
                    break;

                default:
                    new UIAlertView("Option Invalid", "Could not find the API!", null, "OK", null).Show();
                    break;
                }

                tableView.DeselectRow(indexPath, true);                 // normal iOS behaviour is to remove the blue highlight
            }
예제 #7
0
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                switch (indexPath.Row)
                {
                case 0:                         // "version"
                    ShowAlert("version", ADBMobile.Version());
                    break;

                case 1:                         // "privacyStatus"
                    ShowAlert("privacy status", ADBMobile.PrivacyStatus().ToString());
                    break;

                case 2:                         // "setPrivacyStatus - in"
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.OptIn);
                    break;

                case 3:                         // "setPrivacyStatus - out"
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.OptOut);
                    break;

                case 4:                         // "setPrivacyStatus - unknown"
                    ADBMobile.SetPrivacyStatus(ADBMobilePrivacyStatus.Unknown);
                    break;

                case 5:                         // "lifetimeValue"
                    ShowAlert("lifetime value", ADBMobile.LifetimeValue().ToString());
                    break;

                case 6:                         // "userIdentifier"
                    ShowAlert("user identifier", ADBMobile.UserIdentifier());
                    break;

                case 7:                         // "setUserIdentifier"
                    ADBMobile.SetUserIdentifier("imBatman");
                    break;

                case 8:                         // "debugLogging"
                    ShowAlert("debug logging", ADBMobile.DebugLogging().ToString());
                    break;

                case 9:                         // "setDebugLogging - true"
                    ADBMobile.SetDebugLogging(true);
                    break;

                case 10:                         //	"setDebugLogging - false"
                    ADBMobile.SetDebugLogging(false);
                    break;

                case 11:                         //	"keepLifecycleSessionAlive"
                    ADBMobile.KeepLifecycleSessionAlive();
                    break;

                case 12:                         //	"trackState"
                    ADBMobile.TrackState("testState1", cData);
                    break;

                case 13:                         // "trackAction"
                    ADBMobile.TrackAction("testAction1", cData);
                    ADBMobile.TrackAction("testAction1", null);
                    ADBMobile.TrackAction(null, cData);
                    ADBMobile.TrackAction(null, null);
                    break;

                case 14:                         // "trackActionFromBackground"
                    ADBMobile.TrackActionFromBackground("testAction1", cData);
                    break;

                case 15:                         // "trackLocation"
                    CoreLocation.CLLocation l = new CoreLocation.CLLocation(111.111, 44.156);
                    ADBMobile.TrackLocation(l, null);
                    break;

                case 16:                         // "installTVMLHooks"
                    ADBMobile.InstallTVMLHooks(null);
                    break;

                case 17:                         // "trackLifetimeValueIncrease"
                    ADBMobile.TrackLifetimeValueIncrease(new NSDecimalNumber(10.4), cData);
                    break;

                case 18:                         // "trackTimedActionStart"
                    ADBMobile.TrackTimedActionStart("timedAction1", cData);
                    break;

                case 19:                         // "trackTimedActionUpdate"
                    NSDictionary updatedData = NSDictionary.FromObjectAndKey(NSObject.FromObject("val2"), NSObject.FromObject("key2"));
                    ADBMobile.TrackTimedActionUpdate("timedAction1", updatedData);
                    break;

                case 20:                         // "trackTimedActionEnd"
                    ADBMobile.TrackTimedActionEnd("timedAction1", (double arg1, double arg2, NSMutableDictionary arg3) =>
                    {
                        return(true);
                    });
                    break;

                case 21:                         // "trackingTimedActionExists"
                    ShowAlert("timed action exists", ADBMobile.TrackingTimedActionExists("timedAction1").ToString());
                    break;

                case 22:                         // "trackingIdentifier"
                    ShowAlert("tracking identifier", ADBMobile.TrackingIdentifier());
                    break;

                case 23:                         // "trackingSendQueuedHits"
                    ADBMobile.TrackingSendQueuedHits();
                    break;

                case 24:                         // "trackingClearQueue"
                    ADBMobile.TrackingClearQueue();
                    break;

                case 25:                         // "trackingGetQueueSize"
                    ShowAlert("tracking queue size", ADBMobile.TrackingGetQueueSize().ToString());
                    break;

                case 26:                         // "mediaCreateSettingsWithName"
                    settings            = ADBMobile.MediaCreateSettings("name1", 10, "playerName1", "playerID1");
                    settings.Milestones = "25,50,75";
                    break;

                case 27:                         // "mediaAdCreateSettingsWithName"
                    ADBMobile.MediaAdCreateSettings("adName1", 2, "playerName1", "name1", "podName1", 4, "CPM1");
                    break;

                case 28:                         // "mediaOpenWithSettings"
                    ADBMobile.MediaOpenWithSettings(settings, (state) =>
                    {
                        Console.WriteLine(state.Name);
                    });
                    break;

                case 29:                         // "mediaClose"
                    ADBMobile.MediaClose(settings.Name);
                    break;

                case 30:                         // "mediaPlay"
                    ADBMobile.MediaPlay(settings.Name, 0);
                    break;

                case 31:                         // "mediaComplete"
                    ADBMobile.MediaComplete(settings.Name, 5);
                    break;

                case 32:                         // "mediaStop"
                    ADBMobile.MediaStop(settings.Name, 3);
                    break;

                case 33:                         // "mediaClick"
                    ADBMobile.MediaClick(settings.Name, 3);
                    break;

                case 34:                         // "mediaTrack"
                    ADBMobile.MediaTrack(settings.Name, null);
                    break;

                case 35:                         // "targetLoadRequest"
                    ADBMobile.TargetLoadRequest(req, (context) =>
                    {
                        Console.WriteLine(context);
                    });
                    break;

                case 36:                         //	"targetCreateRequestWithName"
                    NSDictionary dict = NSDictionary.FromObjectAndKey(NSObject.FromObject("value2"), NSObject.FromObject("key1"));
                    req = ADBMobile.TargetCreateRequest("iOSTest", "defGal", dict);
                    break;

                case 37:                         //	"targetCreateOrderConfirmRequestWithName"
                    ADBMobile.TargetCreateOrderConfirmRequest("myOrder", "12345", "29.41", "cool stuff", null);
                    break;

                case 38:                         //	"targetClearCookies"
                    ADBMobile.TargetClearCookies();
                    break;

                case 39:                         // "audienceVisitorProfile"
                    ShowAlert("audience visitor profile", ADBMobile.AudienceVisitorProfile().ToString());
                    break;

                case 40:                         //	"audienceDpid"
                    ShowAlert("audience dpid", ADBMobile.AudienceDpid());
                    break;

                case 41:                         // "audienceDpuuid"
                    ShowAlert("audience dpuuid", ADBMobile.AudienceDpuuid());
                    break;

                case 42:                            //	"audienceSetDpid"
                    ADBMobile.AudienceSetDpidAndDpuuid("testDpid", "testDpuuid");
                    break;

                case 43:                            //	"audienceSignalWithData",
                    NSDictionary audienceData = NSDictionary.FromObjectAndKey(NSObject.FromObject("value2"), NSObject.FromObject("key1"));
                    ADBMobile.AudienceSignalWithData(audienceData, (context) =>
                    {
                        Console.WriteLine(context);
                    });
                    break;

                case 44:                         // "audienceReset"
                    ADBMobile.AudienceReset();
                    break;

                case 45:                         // "visitorMarketingCloudID"
                    ShowAlert("visitor mcid", ADBMobile.VisitorMarketingCloudID());
                    break;

                case 46:                         // "visitorSyncIdentifiers"
                    NSDictionary vidDict = NSDictionary.FromObjectAndKey(NSObject.FromObject("value2"), NSObject.FromObject("pushID"));
                    ADBMobile.VisitorSyncIdentifiers(vidDict);
                    break;

                case 47:                         // "setAdvertisingIdentifier",
                    ADBMobile.SetAdvertisingIdentifier("testAdid");
                    break;

                case 48:                         // "setAdvertisingIdentiferNull",
                    ADBMobile.SetAdvertisingIdentifier(null);
                    break;

                case 49:                         // "setPushIdentifier",
                    ADBMobile.SetPushIdentifier(NSData.FromString("testPushId"));
                    break;

                case 50:                         // "setPushIdentifierNull",
                    ADBMobile.SetPushIdentifier(null);
                    break;

                case 51:                         // "setAppGroup",
                    ADBMobile.SetAppGroup("testAppGroup");
                    break;

                case 52:                         // "setAppGroupNull"
                    ADBMobile.SetAppGroup(null);
                    break;

                case 53:                         // "setAppExtensionTypeRegular"
                    ADBMobile.SetAppExtensionType(ADBMobileAppExtensionType.Regular);
                    break;

                case 54:                         // "setAppExtensionTypeStandalone"
                    ADBMobile.SetAppExtensionType(ADBMobileAppExtensionType.StandAlone);
                    break;

                case 55:                         // "registerAdobeDataCallback"
                    ADBMobile.RegisterAdobeDataCallback((adobeMobileDataEvent, callbackData) =>
                    {
                        ShowAlert("adobe data callback", "event: " + adobeMobileDataEvent + "\ndata: " + callbackData);
                    });
                    break;

                case 56:                         // "trackPushMessageClickthrough"
                    ADBMobile.TrackPushMessageClickThrough(NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")));
                    break;

                case 57:                         // "trackLocalNotificationClickthrough"
                    ADBMobile.TrackLocalNotificationClickThrough(NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")));
                    break;

                case 58:                         // "trackAdobeDeepLink"
                    ADBMobile.TrackAdobeDeepLink(NSUrl.FromString("http://adobe.com"));
                    break;

                case 59:                         // "acquisitionCampaignStartForApp"
                    ADBMobile.AcquisitionCampaignStartForApp("com.adobe.test", NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")));
                    break;

                case 60:                         // "targetLoadRequestWithProfileOrderMboxParameters"
                    ADBMobile.TargetLoadRequest("someMbox",
                                                "defaultContent",
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                (context) =>
                    {
                        Console.WriteLine(context);
                    });
                    break;

                case 61:                         // "targetLoadRequestWithRequestLocation"
                    ADBMobile.TargetLoadRequest("someMbox",
                                                "defaultContent",
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")),
                                                (context) =>
                    {
                        Console.WriteLine(context);
                    });
                    break;

                case 62:                         // "targetThirdPartyId"
                    ShowAlert("target thirdPartyId", ADBMobile.TargetThirdPartyID());
                    break;

                case 63:                         // "targetSetThirdPartyId"
                    ADBMobile.TargetSetThirdPartyID("testThirdPartyId");
                    break;

                case 64:                         // "targetSetThirdPartyIdNull"
                    ADBMobile.TargetSetThirdPartyID(null);
                    break;

                case 65:                         // "targetPcID"
                    ShowAlert("target PcID", ADBMobile.TargetPcID());
                    break;

                case 66:                         // "targetSessionID"
                    ShowAlert("target SessionID", ADBMobile.TargetSessionID());
                    break;

                case 67:                         // "visitorSyncIdentifiers"
                    ADBMobile.VisitorSyncIdentifier("idType", "identifier0", ADBMobileVisitorAuthenticationState.Authenticated);
                    break;

                case 68:                         // "visitorSyncIdentifiersAuthState"
                    ADBMobile.VisitorSyncIdentifiers(NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")));
                    break;

                case 69:                         // "visitorSyncIdentifierWithTypeAuthState"
                    ADBMobile.VisitorSyncIdentifiers(NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key")), ADBMobileVisitorAuthenticationState.Unknown);
                    break;

                case 70:                         // "visitorGetIDs"
                    ShowAlert("visitor ids", ADBMobile.VisitorGetIDs().ToString());
                    break;

                case 71:                         // "visitorAppendToURL"
                    ShowAlert("visitor appendToURL", ADBMobile.VisitorAppendToURL(NSUrl.FromString("http://adobe.com")).ToString());
                    break;

                case 72:                         // "collectPII"
                    NSDictionary <NSString, NSString> data = (Foundation.NSDictionary <Foundation.NSString, Foundation.NSString>)NSDictionary.FromObjectAndKey(NSObject.FromObject("value"), NSObject.FromObject("key"));
                    ADBMobile.CollectPII(data);
                    break;
                }

                tableView.DeselectRow(indexPath, true);                 // normal iOS behaviour is to remove the blue highlight
            }