@@ -12,42 +12,65 @@ abstract class FeatureFlagsFlutterApi {
12
12
@HostApi ()
13
13
abstract class InstabugHostApi {
14
14
void setEnabled (bool isEnabled);
15
+
15
16
bool isEnabled ();
17
+
16
18
bool isBuilt ();
17
- void init (String token, List <String > invocationEvents, String debugLogsLevel,
18
- String ? appVariant);
19
+
20
+ void init (
21
+ String token,
22
+ List <String > invocationEvents,
23
+ String debugLogsLevel,
24
+ String ? appVariant,
25
+ );
19
26
20
27
void show ();
28
+
21
29
void showWelcomeMessageWithMode (String mode);
22
30
23
31
void identifyUser (String email, String ? name, String ? userId);
32
+
24
33
void setUserData (String data);
34
+
25
35
void setAppVariant (String appVariant);
26
36
27
37
void logUserEvent (String name);
38
+
28
39
void logOut ();
29
40
30
41
void setLocale (String locale);
42
+
31
43
void setColorTheme (String theme);
44
+
32
45
void setWelcomeMessageMode (String mode);
46
+
33
47
void setPrimaryColor (int color);
48
+
34
49
void setSessionProfilerEnabled (bool enabled);
50
+
35
51
void setValueForStringWithKey (String value, String key);
36
52
37
53
void appendTags (List <String > tags);
54
+
38
55
void resetTags ();
39
56
40
57
@async
41
58
List <String >? getTags ();
42
59
43
60
void addExperiments (List <String > experiments);
61
+
44
62
void removeExperiments (List <String > experiments);
63
+
45
64
void clearAllExperiments ();
65
+
46
66
void addFeatureFlags (Map <String , String > featureFlagsMap);
67
+
47
68
void removeFeatureFlags (List <String > featureFlags);
69
+
48
70
void removeAllFeatureFlags ();
49
71
50
72
void setUserAttribute (String value, String key);
73
+
51
74
void removeUserAttribute (String key);
52
75
53
76
@async
@@ -61,13 +84,17 @@ abstract class InstabugHostApi {
61
84
String ? crashMode,
62
85
String ? sessionReplayMode,
63
86
);
87
+
64
88
void reportScreenChange (String screenName);
65
89
66
90
void setCustomBrandingImage (String light, String dark);
91
+
67
92
void setFont (String font);
68
93
69
94
void addFileAttachmentWithURL (String filePath, String fileName);
95
+
70
96
void addFileAttachmentWithData (Uint8List data, String fileName);
97
+
71
98
void clearFileAttachments ();
72
99
73
100
void networkLog (Map <String , Object > data);
0 commit comments