Classes

The following classes are available globally.

  • User actions and app events can be tracked with BranchEvent. BranchEvents can be attributed back to Branch sessions and campaigns in the Branch dashboard, giving you greater insight into effective campaigns and app use.

    See more

    Declaration

    Objective-C

    @interface BranchEvent : NSObject

    Swift

    class BranchEvent : NSObject
  • The Branch class is the main class for interacting with Branch services.

    See more

    Declaration

    Objective-C

    @interface Branch : NSObject

    Swift

    class Branch : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface BranchLinkProperties : NSObject
    
    + (instancetype)linkPropertiesWithDictionary:(NSDictionary*)dictionary;
    - (NSDictionary*) dictionary;
    
    @property (nonatomic, strong) NSArray<NSString*>*_Nullable  tags;
    @property (nonatomic, strong) NSString*_Nullable feature;
    @property (nonatomic, strong) NSString*_Nullable alias;
    @property (nonatomic, strong) NSString*_Nullable channel;
    @property (nonatomic, strong) NSString*_Nullable stage;
    @property (nonatomic, strong) NSString*_Nullable campaign;
    @property (nonatomic, assign) NSInteger matchDuration;
    @property (nonatomic, assign) BranchLinkType linkType;
    @property (nonatomic, strong, null_resettable) NSMutableDictionary* controlParams;
    @end

    Swift

    class BranchLinkProperties : NSObject
  • Use a BranchConfiguration object to configure Branch for your app when you start Branch.

    See more

    Declaration

    Objective-C

    @interface BranchConfiguration : NSObject <NSCopying>

    Swift

    class BranchConfiguration : NSObject, NSCopying
  • This is a thread-safe version of an NSMutableDictionary.

    See more

    Declaration

    Objective-C

    @interface BranchMutableDictionary <KeyType, ObjectType> : NSMutableDictionary<KeyType,ObjectType>

    Swift

    class BranchMutableDictionary<KeyType, ObjectType> : NSMutableDictionary where KeyType : AnyObject, ObjectType : AnyObject
  • BranchContentMetadata describes properties in your Branch Universal Object.

    See more

    Declaration

    Objective-C

    @interface BranchContentMetadata : NSObject

    Swift

    class BranchContentMetadata : NSObject
  • Use a BranchUniversalObject to describe content in your app for deep links, content analytics and indexing.

    The properties object describes your content in a standard way so that it can be deep linked, shared, or indexed on spotlight for instance. You can set all the properties associated with the object and then call action methods on it to create a link or index the content on Spotlight.

    See more

    Declaration

    Objective-C

    @interface BranchUniversalObject : NSObject

    Swift

    class BranchUniversalObject : NSObject