public void SetCustomDimension(string value, uint dimension)
 {
     Localytics.SetCustomDimension((int)dimension, value);
 }
Пример #2
0
 public void SetCustomerEmail(string email)
 {
     Localytics.SetCustomerEmail(email);
 }
Пример #3
0
 public void SetCustomerLastName(string lastName)
 {
     Localytics.SetCustomerLastName(lastName);
 }
Пример #4
0
 public void DecrementProfileAttribute(int value, string attribute, XFLLProfileScope scope)
 {
     Localytics.DecrementProfileAttribute(value, attribute, ToLLProfileScope(scope));
 }
Пример #5
0
 public void DeleteProfileAttribute(string attribute, XFLLProfileScope scope)
 {
     Localytics.DeleteProfileAttribute(attribute, ToLLProfileScope(scope));
 }
Пример #6
0
 public void AddProfileAttributesToSet(object[] values, string attribute, XFLLProfileScope scope)
 {
     Localytics.AddProfileAttributesToSet(ToNSObjects(values), attribute, ToLLProfileScope(scope));
 }
Пример #7
0
 public void RemoveProfileAttributesFromSet(object[] values, string attribute, XFLLProfileScope scope)
 {
     Localytics.RemoveProfileAttributesFromSet(ToNSObjects(values), attribute, ToLLProfileScope(scope));
 }
Пример #8
0
 public void SetIdentifier(string value, string identifier)
 {
     Localytics.SetIdentifier(identifier, value);
 }
Пример #9
0
 public string GetIdentifier(string identifier)
 {
     return(Localytics.GetIdentifier(identifier));
 }
Пример #10
0
 public void Upload()
 {
     Localytics.Upload();
 }
Пример #11
0
 public void TagScreen(string screenName)
 {
     Localytics.TagScreen(screenName);
 }
Пример #12
0
 public void CloseSession()
 {
     Localytics.CloseSession();
 }
Пример #13
0
 public void OpenSession()
 {
     Localytics.OpenSession();
 }
 public string GetCustomDimension(uint dimension)
 {
     return(Localytics.GetCustomDimension((int)dimension));
 }
Пример #15
0
 public void SetProfileAttribute(object value, string attribute, XFLLProfileScope scope)
 {
     Localytics.SetProfileAttribute(NSObject.FromObject(value), attribute, ToLLProfileScope(scope));
 }
Пример #16
0
 public void DismissCurrentInAppMessage()
 {
     Localytics.DismissCurrentInAppMessage();
 }
Пример #17
0
 public void SetProfileAttribute(object value, string attribute)
 {
     Localytics.SetProfileAttribute(NSObject.FromObject(value), attribute);
 }
Пример #18
0
 public void EnableLiveDeviceLogging()
 {
     Localytics.EnableLiveDeviceLogging();
 }
Пример #19
0
 public void AddProfileAttributesToSet(object[] values, string attribute)
 {
     Localytics.AddProfileAttributesToSet(ToNSObjects(values), attribute);
 }
Пример #20
0
 public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
 {
     Console.WriteLine("Push Token Registered " + deviceToken.DebugDescription);
     Localytics.SetPushToken(deviceToken);
 }
Пример #21
0
 public void RemoveProfileAttributesFromSet(object[] values, string attribute)
 {
     Localytics.RemoveProfileAttributesFromSet(ToNSObjects(values), attribute);
 }
Пример #22
0
        protected override void OnResume()
        {
            base.OnResume();

            Localytics.TagScreen("Inbox");
        }
Пример #23
0
 public void DecrementProfileAttribute(int value, string attribute)
 {
     Localytics.DecrementProfileAttribute(value, attribute);
 }
Пример #24
0
        protected override void OnResume()
        {
            base.OnResume();

            Localytics.TagScreen("MessagingSample Landing");
        }
Пример #25
0
 public void DeleteProfileAttribute(string attribute)
 {
     Localytics.DeleteProfileAttribute(attribute);
 }
Пример #26
0
 public AnalyticsService(IApplication application)
 {
     _localytics = new Localytics(application.Adapter, new LocalyticsInfo("0795f75e61fd8976e45b879-54089388-ca6c-11e3-99c4-005cf8cbabd8"));
 }
Пример #27
0
 public void SetCustomerFirstName(string firstName)
 {
     Localytics.SetCustomerFirstName(firstName);
 }
Пример #28
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);
            LocalyticsAutoIntegrateApplication.localyticsXamarin.CustomerId = "ms_test_user";

            // Register Push
            Localytics.RegisterPush();                  //"YOUR_GCM_PROJECT_NUMBER");
            Localytics.SetOption("session_timeout", 1); // Shorten for testing purpose only

            Button tagEventButton = FindViewById <Button>(Resource.Id.tagEventButton);

            tagEventButton.Click += delegate
            {
                LocalyticsAutoIntegrateApplication.localyticsXamarin.TagEvent("MessagingSample Click");
                Localytics.Upload();
            };

            Button showRegistrationIdButton = FindViewById <Button>(Resource.Id.showRegistrationId);

            showRegistrationIdButton.Click += delegate
            {
                // Blocking Getters may need to be threaded out
                ThreadPool.QueueUserWorkItem(delegate
                {
                    TextView pushText = FindViewById <TextView>(Resource.Id.pushText);
                    string pushRegId  = Localytics.PushRegistrationId;

                    // Update UI back on UI Thread
                    RunOnUiThread(() =>
                    {
                        pushText.Text = pushRegId;
                    });
                });
            };

            Button openInboxButton = FindViewById <Button>(Resource.Id.openInbox);

            openInboxButton.Click += delegate
            {
                StartActivity(typeof(InboxActivity));
            };

            Button startPlacesButton = FindViewById <Button>(Resource.Id.startPlaces);

            startPlacesButton.Click += delegate
            {
                if ((int)Build.VERSION.SdkInt < 23)
                {
                    Localytics.SetLocationMonitoringEnabled(true);
                }
                else
                {
                    const string permission = Manifest.Permission.AccessFineLocation;
                    if (ActivityCompat.CheckSelfPermission(this, permission) == (int)Permission.Granted)
                    {
                        Localytics.SetLocationMonitoringEnabled(true);
                    }
                    else
                    {
                        ActivityCompat.RequestPermissions(this, PermissionsLocation, RequestLocationId);
                    }
                }
            };
        }
Пример #29
0
 public void SetCustomerFullName(string fullName)
 {
     Localytics.SetCustomerFullName(fullName);
 }
 public void TagEvent(string eventName, IDictionary <string, string> attributes, long customerValueIncrease)
 {
     Localytics.TagEvent(eventName, attributes, customerValueIncrease);
 }