UNPKG

1.46 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)handleDeepLink:(NSURL * _Nonnull)url __deprecated_msg("Please use [RNBranch.branch application:openURL:options] or [RNBranch.branch application:openURL:sourceApplication:annotation:] instead.");
20#pragma clang diagnostic push
21#pragma clang diagnostic ignored "-Wpartial-availability"
22+ (BOOL)continueUserActivity:(NSUserActivity * _Nonnull)userActivity;
23#pragma clang diagnostic pop
24
25// Must be called before any other static method below
26+ (void)useTestInstance;
27+ (void)deferInitializationForJSLoad;
28
29+ (void)setDebug;
30+ (void)delayInitToCheckForSearchAds;
31+ (void)setAppleSearchAdsDebugMode;
32+ (void)setRequestMetadataKey:(NSString * _Nonnull)key value:(NSObject * _Nonnull)value;
33
34@end