narek adonts Well-Known Member Licensed User Longtime User Apr 30, 2018 #1 Hi , Could someone tell how to add a missing event to a view(ex. TextView or tableview) using this code example shared by @Erel . B4X: #if OBJC @end @implementation B4IAppDelegate (shortcut) -(void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL succeeded))completionHandler{ B4I* bi = [b4i_main new].bi; [bi raiseEvent:nil event:@"application_shortcutitemclicked:" params:@[shortcutItem.type]]; completionHandler(YES); } #End If Narek
Hi , Could someone tell how to add a missing event to a view(ex. TextView or tableview) using this code example shared by @Erel . B4X: #if OBJC @end @implementation B4IAppDelegate (shortcut) -(void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL succeeded))completionHandler{ B4I* bi = [b4i_main new].bi; [bi raiseEvent:nil event:@"application_shortcutitemclicked:" params:@[shortcutItem.type]]; completionHandler(YES); } #End If Narek
narek adonts Well-Known Member Licensed User Longtime User Apr 30, 2018 #2 Sorry, I forgot that Erel told that most of the delegate classes are private Upvote 0