HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
API Reference

Change Invocation Event

You can change the way Luciq 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]
LCQBugReporting.invocationEvents = LCQInvocationEventShake | LCQInvocationEventScreenshot;
BugReporting.setInvocationEvents(LuciqInvocationEvent.SHAKE, LuciqInvocationEvent.SCREENSHOT);
BugReporting.setInvocationEvents(LuciqInvocationEvent.SHAKE, LuciqInvocationEvent.SCREENSHOT)
BugReporting.setInvocationEvents([Luciq.invocationEvent.shake])
BugReporting.setInvocationEvents(List<InvocationEvent> invocationEvents)
cordova.plugins.bugReporting.setInvocationEvents(events, success, error)
//iOS Only
LCQBugReporting.InvocationEvents = LCQInvocationEvent.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
LCQInvocationEventNone
//Shake
LCQInvocationEventShake
//Screenshot
LCQInvocationEventScreenshot
//Two Finger Swipe Left
LCQInvocationEventTwoFingersSwipeLeft
//Right Edge Pan
LCQInvocationEventRightEdgePan
//Floating Button
LCQInvocationEventFloatingButton
//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
Luciq.invocationEvent.none
//Shake
Luciq.invocationEvent.shake
//Screenshot
Luciq.invocationEvent.screenshot
//Two Finger Swipe Left
Luciq.invocationEvent.twoFingersSwipe
//Floating Button
Luciq.invocationEvent.floatingButton
//iOS
InvocationEvent.none
InvocationEvent.shake
InvocationEvent.screenshot
InvocationEvent.twoFingersSwipe
InvocationEvent.floatingButton

//Android
LuciqFlutterPlugin.INVOCATION_EVENT_NONE
LuciqFlutterPlugin.INVOCATION_EVENT_SHAKE
LuciqFlutterPlugin.INVOCATION_EVENT_SCREENSHOT
LuciqFlutterPlugin.INVOCATION_EVENT_SWIPE
LuciqFlutterPlugin.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
LCQInvocationEvent.None
LCQInvocationEvent.Shake
LCQInvocationEvent.Screenshot
LCQInvocationEvent.TwoFingersSwipeLeft
LCQInvocationEvent.RightEdgePan
LCQInvocationEvent.FloatingButton

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