HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

Change Invocation Event

You can change the way Instabug is invoked at runtime using this method. This method takes any number of Invocation Events as an argument.

Below are all the possible invocation event triggers:

1596
Method

BugReporting.invocationEvents = [.shake, .screenshot]
IBGBugReporting.invocationEvents = IBGInvocationEventShake | IBGInvocationEventScreenshot;
BugReporting.setInvocationEvents(InstabugInvocationEvent.SHAKE, InstabugInvocationEvent.SCREENSHOT);
BugReporting.setInvocationEvents(InstabugInvocationEvent.SHAKE, InstabugInvocationEvent.SCREENSHOT)
BugReporting.setInvocationEvents([Instabug.invocationEvent.shake])
BugReporting.setInvocationEvents(List<InvocationEvent> invocationEvents)
cordova.plugins.bugReporting.setInvocationEvents(events, success, error)
//iOS Only
IBGBugReporting.InvocationEvents = IBGInvocationEvent.FloatingButton;
Invocation Event Parameters:

//No Trigger
.none
//Shake
.shake
//Screenshot
.screenshot
//Two Finger Swipe Left
.twoFingersSwipeLeft
//Right Edge Pan
.rightEdgePan
//Floating Button
.floatingButton
//No Trigger
IBGInvocationEventNone
//Shake
IBGInvocationEventShake
//Screenshot
IBGInvocationEventScreenshot
//Two Finger Swipe Left
IBGInvocationEventTwoFingersSwipeLeft
//Right Edge Pan
IBGInvocationEventRightEdgePan
//Floating Button
IBGInvocationEventFloatingButton
//No Trigger
NONE
//Shake
SHAKE
//Screenshot
SCREENSHOT
//Two Finger Swipe Left
TWO_FINGER_SWIPE_LEFT
//Floating Button
FLOATING_BUTTON
//No Trigger
NONE
//Shake
SHAKE
//Screenshot
SCREENSHOT
//Two Finger Swipe Left
TWO_FINGER_SWIPE_LEFT
//Floating Button
FLOATING_BUTTON
//No Trigger
Instabug.invocationEvent.none
//Shake
Instabug.invocationEvent.shake
//Screenshot
Instabug.invocationEvent.screenshot
//Two Finger Swipe Left
Instabug.invocationEvent.twoFingersSwipe
//Floating Button
Instabug.invocationEvent.floatingButton
//iOS
InvocationEvent.none
InvocationEvent.shake
InvocationEvent.screenshot
InvocationEvent.twoFingersSwipe
InvocationEvent.floatingButton

//Android
InstabugFlutterPlugin.INVOCATION_EVENT_NONE
InstabugFlutterPlugin.INVOCATION_EVENT_SHAKE
InstabugFlutterPlugin.INVOCATION_EVENT_SCREENSHOT
InstabugFlutterPlugin.INVOCATION_EVENT_SWIPE
InstabugFlutterPlugin.INVOCATION_EVENT_BUTTON
//No Trigger
cordova.plugins.bugReporting.invocationEvents.none
//Shake
cordova.plugins.bugReporting.invocationEvents.shake
//Floating Button
cordova.plugins.bugReporting.invocationEvents.button
//Screenshot
cordova.plugins.bugReporting.invocationEvents.screenshot
//Two Finger Swipe Left
cordova.plugins.bugReporting.invocationEvents.swipe
//iOS
IBGInvocationEvent.None
IBGInvocationEvent.Shake
IBGInvocationEvent.Screenshot
IBGInvocationEvent.TwoFingersSwipeLeft
IBGInvocationEvent.RightEdgePan
IBGInvocationEvent.FloatingButton

//Android 
InstabugInvocationEvent.Shake
InstabugInvocationEvent.Screenshot
InstabugInvocationEvent.FloatingButton
InstabugInvocationEvent.ScreenshotGesture
InstabugInvocationEvent.TwoFingerSwipeLeft
InstabugInvocationEvent.None