I need to implement a callback function defined in a @protocol declaration of an SDK that I am using.
I managed to integrate the SDK and initialize it using inline Objective-C (I receive logs stating that it is 'working'), but need a clue (better two) of how to implement this callback in Objective C
According to their DOCUMENTATION, it says
How could I declare this function in inline Objective C so that I can process this call?
Thanks in advance!
I managed to integrate the SDK and initialize it using inline Objective-C (I receive logs stating that it is 'working'), but need a clue (better two) of how to implement this callback in Objective C
According to their DOCUMENTATION, it says
"You may also customize actions using MOCAProximityActionsDelegate:"
B4X:
@protocol
@optional
// ... some other protocol functions that won't be used
// This is the one I want to use.
/*
* Called when the app should execute a custom action.
* @param customAttribute - user provided custom attribute
* @return YES if the alert was shown to the user, NO otherwise.
*/
-(BOOL)action:(MOCAAction*)sender performCustomAction:(NSString*)customAttribute withSituation:(MOCAFireSituation)situation;
@end
How could I declare this function in inline Objective C so that I can process this call?
Thanks in advance!