Forum Libraries, Components, and Plugins

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

TriggerIt - a simple library for triggering events

I've created a simple library called TriggerIt. It is useful when you need trigger actions based on perviously logged events or time.

For example, you want to show "Send us feedback" alert after 4 interactions with an action button and 30 seconds in the app - this can be configured with TriggerIt:

TriggerIt.Xamarin.Forms.Service.Instance.RegisterTrigger(new MyFeedbackTrigger(), TriggerIt.Triggers.TriggerPlanning.If() .EventCountSinceUptimeIs("my_event_logged_on_action_button", 4) .UptimeIsAtLeast(TimeSpan.FromSeconds(30)) .WithPeriodicity(TriggerIt.Triggers.TriggerPlanningPeriodicities.OnceSinceZeroUptime));

You can find more information at: github.com/ladislavsalom/TriggerIt

The library is still kind of a beta version but I'm using it in my Xamarin Forms app.

Feedback appreciated :)

Sign In or Register to comment.