Building Instabug

You can use these methods to build Instabug 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 Instabug already installed. For more information on how to fully install and integrate Instabug, please refer to the relevant documentation sections here:

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

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

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

//Android
new Instabug.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
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
//iOS
//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

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