@@ -230,6 +230,8 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
230230// / @return Returns the current Branch key.
231231+ (NSString *) branchKey ;
232232
233+ + (BOOL ) branchKeyIsSet ;
234+
233235/* *
234236 * By default, the Branch SDK will include the device fingerprint ID as metadata in Crashlytics
235237 * reports. This can help locate problems by correlating API traffic with a crash. To
@@ -678,6 +680,29 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
678680
679681- (void )setInstallRequestDelay : (NSInteger )installRequestDelay ;
680682
683+ /* *
684+ Disables the Branch SDK from tracking the user. This is useful for GDPR privacy compliance.
685+
686+ When tracking is disabled, the Branch SDK will clear the Branch defaults of user identifying
687+ information and prevent Branch from making any Branch network calls that will track the user.
688+
689+ Note that:
690+
691+ * Opening Branch deep links with an explicit URL will work.
692+ * Deferred deep linking will not work.
693+ * Generating short links will not work and will return long links instead.
694+ * Sending user tracking events such as `userCompletedAction`, `BranchCommerceEvents`, and
695+ `BranchEvents` will fail.
696+ * User rewards and credits will not work.
697+ * Setting a user identity and logging a user identity out will not work.
698+
699+ @param disabled If set to `true` then tracking will be disabled.
700+ @warning This will prevent most of the Branch SDK functionality.
701+ */
702+ + (void ) setTrackingDisabled : (BOOL )disabled ;
703+
704+ // /Returns the current tracking state.
705+ + (BOOL ) trackingDisabled ;
681706
682707#pragma mark - Session Item methods
683708
0 commit comments