-
public class BranchReferralUrlBuilder extends BranchUrlBuilder<BranchReferralUrlBuilder>
Class for creating builder for getting a referral url with Branch. This builder provide an easy and flexible way to configure and create a referral url synchronously or asynchronously.
-
-
Constructor Summary
Constructors Constructor Description BranchReferralUrlBuilder(Context context, String channel)
-
Method Summary
Modifier and Type Method Description StringgetReferralUrl()Configures and requests a referral URL to be generated by the Branch servers, via a synchronouscall. voidgenerateReferralUrl(Branch.BranchLinkCreateListener callback)Configures and requests a referral URL to be generated by the Branch servers, via an asynchronouscall; The Branch.BranchLinkCreateListener is called back with the url when the url is generated. -
-
Method Detail
-
getReferralUrl
String getReferralUrl()
Configures and requests a referral URL to be generated by the Branch servers, via a synchronouscall.
-
generateReferralUrl
void generateReferralUrl(Branch.BranchLinkCreateListener callback)
Configures and requests a referral URL to be generated by the Branch servers, via an asynchronouscall; The Branch.BranchLinkCreateListener is called back with the url when the url is generated.
- Parameters:
callback- A Branch.BranchLinkCreateListener callback instance that will trigger when link is generated.
-
-
-
-