BranchSdk class

Constructors

BranchSdk()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

platformVersion Future<String?>
Get platform version. Boilerplate Flutter plugin function.
no setter

Static Methods

enableLogging() → void
Enable Branch SDK Logging.
init({bool? debug, Function? onInit}) → dynamic
Initailize the Branch SDK.
logout(Function? logoutCallback) → void
Clears user session and creates a new one. Use this when another user wants to use the app.
setIdentity(String identity, {Function? onSetIdentity}) → void
Set User Identity.
setPreinstallCampaign(String? campaign) → void
wrapper method to add the pre-install campaign analytics
setPreinstallPartner(String? partner) → void
wrapper method to add the pre-install campaign analytics. Android Only. partner Partner String
validateSDKIntegration() → dynamic
Use the validateSDKIntegration method as a debugging aid to assure that you've integrated the Branch SDK correctly.