Skip to content

Instantly share code, notes, and snippets.

{
"transfer": "Transfer",
"transaction_feed": "Transaction feed",
"change_name": "Change name"
}
@kakobotasso
kakobotasso / EventTrackerIOS.cs
Last active May 17, 2019 04:55
EventTrackerIOS FireEvents
using System;
using System.Collections.Generic;
using System.Text;
using Firebase.Analytics;
using Firebase.Core;
using FireEvents.iOS;
using Foundation;
using Xamarin.Forms;
[assembly: Dependency(typeof(EventTrackerIOS))]
@kakobotasso
kakobotasso / ExtraConfig
Created May 17, 2019 04:53
Extra config to iOS Debug View
--argument=-FIRAnalyticsDebugEnabled
@kakobotasso
kakobotasso / AppDelegate.cs
Created May 17, 2019 03:32
AppDelegate FireEvents
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace FireEvents.iOS
{
[Register("AppDelegate")]
@kakobotasso
kakobotasso / MainPage.xaml.cs
Created May 14, 2019 04:23
MainPage.xaml.cs completed FireEvents
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace FireEvents
{
@kakobotasso
kakobotasso / FireEvents.Android.csproj
Created May 14, 2019 04:18
FireEvents.Android.csproj FireEvents
<ItemGroup>
<GoogleServicesJson Include="google-services.json" />
</ItemGroup>
@kakobotasso
kakobotasso / EventTrackerDroid.cs
Created May 14, 2019 04:09
IEventTracker implementation FireEvents
using System;
using System.Collections.Generic;
using Android.OS;
using Firebase.Analytics;
using FireEvents;
using FireEvents.Droid;
using Xamarin.Forms;
[assembly: Dependency(typeof(EventTrackerDroid))]
namespace FireEvents.Droid
@kakobotasso
kakobotasso / IEventTracker.cs
Created May 14, 2019 04:00
IEventTracker FireEvents
using System;
using System.Collections.Generic;
namespace FireEvents
{
public interface IEventTracker
{
void SendEvent(string eventId);
void SendEvent(string eventId, string paramName, string value);
void SendEvent(string eventId, IDictionary<string, string> parameters);
@kakobotasso
kakobotasso / MainPage.xaml.cs
Created May 14, 2019 03:53
MainPage code behind FireEvents
using System;
namespace FireEvents
{
[DesignTimeVisible(true)]
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
@kakobotasso
kakobotasso / MainPage.xaml
Created May 14, 2019 03:51
MainPage from FireEvents
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:FireEvents" x:Class="FireEvents.MainPage">
<StackLayout>
<Button
Text="Click button 01"
Clicked="OnButton01Clicked" />
<Button
Text="Click button 02"
Clicked="OnButton02Clicked" />