UNPKG

1.51 kBtext/x-cView Raw
1#import <Foundation/Foundation.h>
2#import <React/RCTBridgeModule.h>
3
4#import <Branch/Branch.h>
5
6extern NSString * _Nonnull const RNBranchLinkOpenedNotification;
7extern NSString * _Nonnull const RNBranchLinkOpenedNotificationErrorKey;
8extern NSString * _Nonnull const RNBranchLinkOpenedNotificationParamsKey;
9extern NSString * _Nonnull const RNBranchLinkOpenedNotificationUriKey;
10extern NSString * _Nonnull const RNBranchLinkOpenedNotificationBranchUniversalObjectKey;
11extern NSString * _Nonnull const RNBranchLinkOpenedNotificationLinkPropertiesKey;
12
13
14@interface RNBranch : NSObject <RCTBridgeModule>
15
16@property (class, readonly, nonnull) Branch *branch;
17
18+ (void)initSessionWithLaunchOptions:(NSDictionary * _Nullable)launchOptions isReferrable:(BOOL)isReferrable;
19+ (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> * _Nullable)options;
20+ (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation;
21#pragma clang diagnostic push
22#pragma clang diagnostic ignored "-Wpartial-availability"
23+ (BOOL)continueUserActivity:(NSUserActivity * _Nonnull)userActivity;
24#pragma clang diagnostic pop
25
26// Must be called before any other static method below
27+ (void)useTestInstance;
28+ (void)deferInitializationForJSLoad;
29
30+ (void)setDebug;
31+ (void)enableLogging;
32+ (void)delayInitToCheckForSearchAds;
33
34@end