HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.1. Click to read the latest docs for v12.0.0.

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([Instabug.invocationEvent.shake])
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_GESTURE
//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
//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