HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
API Reference

Building Luciq

You can use these methods to build Luciq in your project so that you can invoke it. This method takes a string token and any number of invocation events as an argument. This method will require that you have Luciq already installed. For more information on how to fully install and integrate Luciq, please refer to the relevant documentation sections here:

Luciq.start(withToken: "YOUR-TOKEN-HERE", invocationEvents: [.shake, .screenshot]);
[Luciq startWithToken:@"YOUR-TOKEN-HERE" invocationEvents: LCQInvocationEventShake | LCQInvocationEventScreenshot]
new Luciq.Builder(this, "APP_TOKEN")
    .setInvocationEvents(LuciqInvocationEvent.SHAKE, LuciqInvocationEvent.SCREENSHOT)
    .build();
Luciq.Builder(this, "APP_TOKEN")
            .setInvocationEvents(LuciqInvocationEvent.SHAKE, LuciqInvocationEvent.SCREENSHOT)
            .build()
//iOS
Luciq.startWithToken('IOS_APP_TOKEN', [Luciq.invocationEvent.shake]);

//Android
new RNLuciqReactnativePackage.Builder("TOKEN",MainApplication.this)
							.build();
//iOS
Luciq.start('APP_TOKEN', [InvocationEvent.shake]);

//Android
ArrayList<String> invocationEvents = new ArrayList<>();
invocationEvents.add(LuciqFlutterPlugin.INVOCATION_EVENT_SHAKE);
new LuciqFlutterPlugin().start(CustomFlutterApplication.this, "APP_TOKEN", invocationEvents);
cordova.plugins.luciq.activate(
    {
        ios: 'MY_IOS_TOKEN'
    },
    function () {
        console.log('Luciq initialized.');
    },
    function (error) {
        console.log('Luciq could not be initialized - ' + error);
    }
);
//iOS
Luciq.StartWithToken("YOUR_APP_TOKEN", LCQInvocationEvent.Shake | LCQInvocationEvent.Screenshot);

//Android
new Luciq.Builder(this, "TOKEN").Build();
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
//iOS
//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

//Android
"none"
"shake"
"screenshot"
"swipe"
"button"
//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