File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed
android/src/main/java/com/instabug/instabugflutter Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ ## master
2+
3+ * Added Enable/Disable APIs on Android
4+
15## v9.1.6 (2020-07-13)
26
37* Added CrashReporting
Original file line number Diff line number Diff line change @@ -983,4 +983,18 @@ public void setShakingThresholdForAndroid(int androidThreshold) {
983983 BugReporting .setShakingThreshold (androidThreshold );
984984 }
985985
986+ /**
987+ * Enables all Instabug functionality
988+ */
989+ public void enable () {
990+ Instabug .enable ();
991+ }
992+
993+ /**
994+ * Disables all Instabug functionality
995+ */
996+ public void disable () {
997+ Instabug .disable ();
998+ }
999+
9861000}
Original file line number Diff line number Diff line change @@ -286,4 +286,20 @@ class Instabug {
286286 final List <dynamic > params = < dynamic > [reproStepsMode.toString ()];
287287 await _channel.invokeMethod <Object >('setReproStepsMode:' , params);
288288 }
289+
290+ ///Android Only
291+ ///Enables all Instabug functionality
292+ static void enableAndroid () async {
293+ if (Platform .isAndroid) {
294+ await _channel.invokeMethod <Object >('enable:' );
295+ }
296+ }
297+
298+ ///Android Only
299+ ///Disables all Instabug functionality
300+ static void disableAndroid () async {
301+ if (Platform .isAndroid) {
302+ await _channel.invokeMethod <Object >('disable:' );
303+ }
304+ }
289305}
You can’t perform that action at this time.
0 commit comments