Пример #1
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            // set the wrapper type
            ACPCore.SetWrapperType(ACPMobileWrapperType.Xamarin);

            // set launch config
            ACPCore.ConfigureWithAppID("launch-ENf8ed5382efc84d5b81a9be8dcc231be1-development");

            // set log level
            ACPCore.LogLevel = ACPMobileLogLevel.Verbose;

            // register SDK extensions
            ACPIdentity.RegisterExtension();
            ACPLifecycle.RegisterExtension();
            ACPSignal.RegisterExtension();

            // start core
            ACPCore.Start(null);

            // register dependency service to link interface from ACPCoreTestApp base project
            DependencyService.Register <IACPCoreExtensionService, ACPCoreExtensionService>();
            return(base.FinishedLaunching(app, options));
        }
Пример #2
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            runner = new TouchRunner(window);

            // register every tests included in the main application/assembly
            runner.Add(System.Reflection.Assembly.GetExecutingAssembly());

            window.RootViewController = new UINavigationController(runner.GetViewController());

            // make the window visible
            window.MakeKeyAndVisible();

            // setup for all tests
            CountdownEvent latch = new CountdownEvent(1);

            ACPCore.LogLevel = ACPMobileLogLevel.Verbose;
            ACPAnalytics.RegisterExtension();
            ACPIdentity.RegisterExtension();
            ACPLifecycle.RegisterExtension();

            // start core
            ACPCore.Start(() =>
            {
                ACPCore.ConfigureWithAppID("94f571f308d5/00fc543a60e1/launch-c861fab912f7-development");
                latch.Signal();
            });
            latch.Wait();
            latch.Dispose();

            return(true);
        }
Пример #3
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            //Registering Adobe Extensions
            ACPCore.SetWrapperType(ACPMobileWrapperType.Xamarin);
            ACPSignal.RegisterExtension();
            ACPPlaces.RegisterExtension();

            ACPCore.ConfigureWithAppID("{your-launch-id}");
            ACPCore.Start(null);

            DependencyService.Register <IACPPlacesExtensionService, ACPPlacesExtensionService>();

            return(base.FinishedLaunching(app, options));
        }
Пример #4
0
        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

            // Setting up AEP SdK's.
            ACPCore.SetWrapperType(ACPMobileWrapperType.Xamarin);
            // set launch config
            ACPCore.ConfigureWithAppID("launch-ENf8ed5382efc84d5b81a9be8dcc231be1-development");

            // set log level
            ACPCore.LogLevel = ACPMobileLogLevel.Verbose;

            // register SDK extensions
            ACPIdentity.RegisterExtension();
            ACPLifecycle.RegisterExtension();
            ACPSignal.RegisterExtension();

            // start core
            ACPCore.Start(null);
            return(true);
        }
Пример #5
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());

            //Register Adobe AEP Sdk's
            ACPCore.SetWrapperType(WrapperType.Xamarin);

            ACPCore.Application = this.Application;
            ACPPlaces.RegisterExtension();
            ACPSignal.RegisterExtension();

            ACPCore.Start(null);
            ACPCore.ConfigureWithAppID("{your-launch-id}");

            DependencyService.Register <IACPPlacesExtensionService, ACPPlacesExtensionService>();
        }
Пример #6
0
 public static void HandleStartAdobeCallback()
 {
     ACPCore.ConfigureWithAppID("launch-ENc28aaf2fb6934cff830c8d3ddc5465b1-development");
 }
 public void Call(Java.Lang.Object callback)
 {
     // set launch config
     ACPCore.ConfigureWithAppID("94f571f308d5/00fc543a60e1/launch-c861fab912f7-development");
 }
Пример #8
0
 private void startCallback()
 {
     // set launch config
     ACPCore.ConfigureWithAppID("94f571f308d5/e30a9514788b/launch-44fec1a705f1-development");
 }
Пример #9
0
 public static void HandleStartAdobeCallback()
 {
     print(LOG_TAG + "HandleStartAdobeCallback");
     ACPCore.ConfigureWithAppID("94f571f308d5/00fc543a60e1/launch-c861fab912f7-development");
 }
Пример #10
0
 public void Call(Java.Lang.Object callback)
 {
     // set launch config
     ACPCore.ConfigureWithAppID("launch-ENf8ed5382efc84d5b81a9be8dcc231be1-development");
 }
Пример #11
0
 private void startCallback()
 {
     // set launch config
     ACPCore.ConfigureWithAppID("launch-ENf8ed5382efc84d5b81a9be8dcc231be1-development");
 }