Exemplo n.º 1
0
 public override void LocalyticsDidPrivacyOptOut(bool p0, LocalyticsXamarin.Android.Campaign p1)
 {
     if (LocalyticsSDK.DidPrivacyOptOut != null)
     {
         LocalyticsSDK.DidPrivacyOptOut(null, new DidOptOutEventArgs(p0, Convertor.CampaignFrom(p1)));
     }
 }
Exemplo n.º 2
0
 public override bool LocalyticsShouldDeeplink(string p0, LocalyticsXamarin.Android.Campaign p1)
 {
     if (LocalyticsSDK.CallToActionShouldDeepLinkDelegate != null)
     {
         return(LocalyticsSDK.CallToActionShouldDeepLinkDelegate(p0, Convertor.CampaignFrom(p1)));
     }
     return(true);
 }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            // Sample Code for Docs.

            LocalyticsSDK localytics = LocalyticsSDK.SharedInstance;

            localytics.SetOption("ll_session_timeout_seconds", 10);
            localytics.CustomerId = "Sample Customer";
            localytics.SetProfileAttribute("Sample Attribute", LocalyticsXamarin.Common.XFLLProfileScope.Application, 83);
            localytics.AddProfileAttribute("Sample Set", LocalyticsXamarin.Common.XFLLProfileScope.Organization, 321, 654);
            localytics.TagEvent("Test Event");
            localytics.TagScreen("Test Screen");
            localytics.Upload();

            LoadApplication(new App());
        }
Exemplo n.º 4
0
 static Localytics()
 {
     LocalyticsSDK.UpdatePluginVersion();
     Localytics.SetMessagingListener(new IMessagingListenerV2Implementor());
     Localytics.SetCallToActionListener(new CTAListenerImplementation());
 }