Skip to content

Instantly share code, notes, and snippets.

@dinotrnka
Last active March 8, 2021 10:36
Show Gist options
  • Save dinotrnka/7b826a66f7784800551d5c140e1626e9 to your computer and use it in GitHub Desktop.
Save dinotrnka/7b826a66f7784800551d5c140e1626e9 to your computer and use it in GitHub Desktop.
NativeCallProxy.h
#import <Foundation/Foundation.h>
@protocol NativeCallsProtocol
@required
- (void) sendMessageToMobileApp:(NSString*)message;
// other methods
@end
__attribute__ ((visibility("default")))
@interface FrameworkLibAPI : NSObject
+(void) registerAPIforNativeCalls:(id<NativeCallsProtocol>) aApi;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment