-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
telemetry_service.dart
60 lines (32 loc) · 1.93 KB
/
telemetry_service.dart
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import 'package:shiori/domain/enums/enums.dart';
import 'package:shiori/domain/models/models.dart';
abstract class TelemetryService {
Future<void> initTelemetry();
Future<void> trackEventAsync(String name, [Map<String, String>? properties]);
Future<void> trackCharacterLoaded(String value);
Future<void> trackWeaponLoaded(String value);
Future<void> trackArtifactLoaded(String value);
Future<void> trackAscensionMaterialsOpened();
Future<void> trackUrlOpened(bool loadMap, bool loadWishSimulator, bool loadDailyCheckIn, bool networkAvailable);
Future<void> trackCalculatorItemAscMaterialLoaded(String item);
Future<void> trackTierListOpened();
Future<void> trackInit(AppSettings settings);
Future<void> trackGameCodesOpened();
Future<void> trackTierListBuilderScreenShootTaken();
Future<void> trackMaterialLoaded(String key);
Future<void> trackCalculatorAscMaterialsSessionsLoaded();
Future<void> trackCalculatorAscMaterialsSessionsCreated();
Future<void> trackCalculatorAscMaterialsSessionsUpdated();
Future<void> trackCalculatorAscMaterialsSessionsDeleted({bool all = false});
Future<void> trackItemAddedToInventory(String key, int quantity);
Future<void> trackItemUpdatedInInventory(String key, int quantity);
Future<void> trackItemDeletedFromInventory(String key);
Future<void> trackItemsDeletedFromInventory(ItemType type);
Future<void> trackNotificationCreated(AppNotificationType type);
Future<void> trackNotificationUpdated(AppNotificationType type);
Future<void> trackNotificationDeleted(AppNotificationType type);
Future<void> trackNotificationRestarted(AppNotificationType type);
Future<void> trackNotificationStopped(AppNotificationType type);
Future<void> trackCustomBuildSaved(String charKey, CharacterRoleType roleType, CharacterRoleSubType subType);
Future<void> trackCustomBuildScreenShootTaken(String charKey, CharacterRoleType roleType, CharacterRoleSubType subType);
}