public void SetCustomDimension(string value, uint dimension) { Localytics.SetCustomDimension((int)dimension, value); }
public void SetCustomerEmail(string email) { Localytics.SetCustomerEmail(email); }
public void SetCustomerLastName(string lastName) { Localytics.SetCustomerLastName(lastName); }
public void DecrementProfileAttribute(int value, string attribute, XFLLProfileScope scope) { Localytics.DecrementProfileAttribute(value, attribute, ToLLProfileScope(scope)); }
public void DeleteProfileAttribute(string attribute, XFLLProfileScope scope) { Localytics.DeleteProfileAttribute(attribute, ToLLProfileScope(scope)); }
public void AddProfileAttributesToSet(object[] values, string attribute, XFLLProfileScope scope) { Localytics.AddProfileAttributesToSet(ToNSObjects(values), attribute, ToLLProfileScope(scope)); }
public void RemoveProfileAttributesFromSet(object[] values, string attribute, XFLLProfileScope scope) { Localytics.RemoveProfileAttributesFromSet(ToNSObjects(values), attribute, ToLLProfileScope(scope)); }
public void SetIdentifier(string value, string identifier) { Localytics.SetIdentifier(identifier, value); }
public string GetIdentifier(string identifier) { return(Localytics.GetIdentifier(identifier)); }
public void Upload() { Localytics.Upload(); }
public void TagScreen(string screenName) { Localytics.TagScreen(screenName); }
public void CloseSession() { Localytics.CloseSession(); }
public void OpenSession() { Localytics.OpenSession(); }
public string GetCustomDimension(uint dimension) { return(Localytics.GetCustomDimension((int)dimension)); }
public void SetProfileAttribute(object value, string attribute, XFLLProfileScope scope) { Localytics.SetProfileAttribute(NSObject.FromObject(value), attribute, ToLLProfileScope(scope)); }
public void DismissCurrentInAppMessage() { Localytics.DismissCurrentInAppMessage(); }
public void SetProfileAttribute(object value, string attribute) { Localytics.SetProfileAttribute(NSObject.FromObject(value), attribute); }
public void EnableLiveDeviceLogging() { Localytics.EnableLiveDeviceLogging(); }
public void AddProfileAttributesToSet(object[] values, string attribute) { Localytics.AddProfileAttributesToSet(ToNSObjects(values), attribute); }
public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken) { Console.WriteLine("Push Token Registered " + deviceToken.DebugDescription); Localytics.SetPushToken(deviceToken); }
public void RemoveProfileAttributesFromSet(object[] values, string attribute) { Localytics.RemoveProfileAttributesFromSet(ToNSObjects(values), attribute); }
protected override void OnResume() { base.OnResume(); Localytics.TagScreen("Inbox"); }
public void DecrementProfileAttribute(int value, string attribute) { Localytics.DecrementProfileAttribute(value, attribute); }
protected override void OnResume() { base.OnResume(); Localytics.TagScreen("MessagingSample Landing"); }
public void DeleteProfileAttribute(string attribute) { Localytics.DeleteProfileAttribute(attribute); }
public AnalyticsService(IApplication application) { _localytics = new Localytics(application.Adapter, new LocalyticsInfo("0795f75e61fd8976e45b879-54089388-ca6c-11e3-99c4-005cf8cbabd8")); }
public void SetCustomerFirstName(string firstName) { Localytics.SetCustomerFirstName(firstName); }
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); } } }; }
public void SetCustomerFullName(string fullName) { Localytics.SetCustomerFullName(fullName); }
public void TagEvent(string eventName, IDictionary <string, string> attributes, long customerValueIncrease) { Localytics.TagEvent(eventName, attributes, customerValueIncrease); }