forked from nventive/UnoApplicationTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIAnalyticsSink.cs
31 lines (28 loc) · 1.12 KB
/
IAnalyticsSink.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Chinook.DataLoader;
using Chinook.DynamicMvvm;
using Chinook.SectionsNavigation;
namespace ApplicationTemplate.Presentation;
/// <summary>
/// This service collects raw analytics data from the application and processes it to send to an analytics provider (such as AppCenter, Firebase, Segment, etc.).
/// </summary>
public interface IAnalyticsSink
{
/// <summary>
/// Tracks a navigation event from which to derive page views.
/// </summary>
/// <param name="navigatorState">The state of the navigator.</param>
void TrackNavigation(SectionsNavigatorState navigatorState);
/// <summary>
/// Tracks a command execution initiation.
/// </summary>
/// <param name="commandName">The name of the command.</param>
/// <param name="commandParameter">The optional command parameter.</param>
/// <param name="viewModel">An optional weak reference to the ViewModel owning the command.</param>
void TrackCommand(string commandName, object? commandParameter, WeakReference<IViewModel>? viewModel);
}