Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
changeInvocationEvent(invocationEvent) {
if(invocationEvent === 'Shake')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.shake]);
if(invocationEvent === 'Button')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.floatingButton]);
if(invocationEvent === 'Screenshot')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.screenshot]);
if(invocationEvent === 'twoFingersSwipe')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.twoFingersSwipe]);
if(invocationEvent === 'None')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.none]);
}
changeInvocationEvent(invocationEvent) {
if(invocationEvent === 'Shake')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.shake]);
if(invocationEvent === 'Button')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.floatingButton]);
if(invocationEvent === 'Screenshot')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.screenshot]);
if(invocationEvent === 'twoFingersSwipe')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.twoFingersSwipe]);
if(invocationEvent === 'None')
BugReporting.setInvocationEvents([BugReporting.invocationEvent.none]);
}