Skip to content

Commit ee26c9c

Browse files
committed
✨ [IOS] Added InvocationEvent Enum Mapping
1 parent 3f9769f commit ee26c9c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ios/Classes/InstabugFlutterPlugin.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
#import "Instabug.h"
33

44
@implementation InstabugFlutterPlugin
5+
6+
+ (NSDictionary *) constants {
7+
return @{
8+
@"InvocationEvent.shake": @(IBGInvocationEventShake),
9+
@"InvocationEvent.screenshot": @(IBGInvocationEventScreenshot),
10+
@"InvocationEvent.twoFingersSwipeLeft": @(IBGInvocationEventTwoFingersSwipeLeft),
11+
@"InvocationEvent.floatingButton": @(IBGInvocationEventFloatingButton),
12+
@"InvocationEvent.none": @(IBGInvocationEventNone),
13+
};
14+
};
15+
516
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
617
FlutterMethodChannel* channel = [FlutterMethodChannel
718
methodChannelWithName:@"instabug_flutter"

0 commit comments

Comments
 (0)