-
Notifications
You must be signed in to change notification settings - Fork 42
/
instabug.api.dart
57 lines (43 loc) · 1.5 KB
/
instabug.api.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
import 'package:pigeon/pigeon.dart';
@HostApi()
abstract class InstabugHostApi {
void setEnabled(bool isEnabled);
void init(String token, List<String> invocationEvents, String debugLogsLevel);
void show();
void showWelcomeMessageWithMode(String mode);
void identifyUser(String email, String? name);
void setUserData(String data);
void logUserEvent(String name);
void logOut();
void setLocale(String locale);
void setColorTheme(String theme);
void setWelcomeMessageMode(String mode);
void setPrimaryColor(int color);
void setSessionProfilerEnabled(bool enabled);
void setValueForStringWithKey(String value, String key);
void appendTags(List<String> tags);
void resetTags();
@async
List<String>? getTags();
void addExperiments(List<String> experiments);
void removeExperiments(List<String> experiments);
void clearAllExperiments();
void setUserAttribute(String value, String key);
void removeUserAttribute(String key);
@async
String? getUserAttributeForKey(String key);
@async
Map<String, String>? getUserAttributes();
void setReproStepsConfig(
String? bugMode,
String? crashMode,
String? sessionReplayMode,
);
void reportScreenChange(String screenName);
void setCustomBrandingImage(String light, String dark);
void setFont(String font);
void addFileAttachmentWithURL(String filePath, String fileName);
void addFileAttachmentWithData(Uint8List data, String fileName);
void clearFileAttachments();
void networkLog(Map<String, Object> data);
}