LinkGenerator
Overview
Public constructor
public LinkGenerator(String mediaSource)
Import the class
import com.appsflyer.share.LinkGenerator;
import com.appsflyer.share.LinkGenerator
Methods
setBrandDomain
Methods signature
public LinkGenerator setBrandDomain(String brandDomain)
Returns
LinkGenerator
.
getBrandDomain
Method signature
public String getBrandDomain()
Input arguments
This method doesn't take any input arguments.
Returns
String
.
setDeeplinkPath
Method signature
public LinkGenerator setDeeplinkPath(String deeplinkPath)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | deeplinkPath |
Returns
LinkGenerator
.
setBaseDeeplink
Method signature
public LinkGenerator setBaseDeeplink(String baseDeeplink)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | baseDeeplink |
Returns
LinkGenerator
.
getChannel
Method signature
public String getChannel()
Description
Input arguments
This method doesn't take any input arguments.
Returns
String
.
setChannel
Method signature
public LinkGenerator setChannel(String channel)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | channel |
Returns
LinkGenerator
.
setReferrerCustomerId
Method signature
public LinkGenerator setReferrerCustomerId(String referrerCustomerId)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | referrerCustomerId |
Returns
LinkGenerator
.
getMediaSource
Method signature
public String getMediaSource()
Description
Input arguments
This method doesn't take any input arguments.
Returns
String
.
getUserParams
Notice - The method was names
getParameters
prior to SDK version 6.4.2
Method signature
public Map<String, String> getUserParams()
Description
Input arguments
This method doesn't take any input arguments.
Returns
Map<String, String>
.
getCampaign
Method signature
public String getCampaign()
Description
Input arguments
This method doesn't take any input arguments.
Returns
String
.
setCampaign
Method signature
public LinkGenerator setCampaign(String campaign)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | campaign |
Returns
LinkGenerator
.
addParameter
Method signature
public LinkGenerator addParameter(String key, String value)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | key | Parameter name. |
String | value | Parameter value. |
Returns
LinkGenerator
.
addParameters
Method signature
public LinkGenerator addParameters(Map<String, String> parameters)
Description
Input arguments
Type | Name | Description |
---|---|---|
Map<String, String> | parameters |
Returns
LinkGenerator
.
setReferrerUID
Method signature
public LinkGenerator setReferrerUID(String referrerUID)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | referrerUID |
Returns
LinkGenerator
.
setReferrerName
Method signature
public LinkGenerator setReferrerName(String referrerName)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | referrerName |
Returns
LinkGenerator
.
setReferrerImageURL
Method signature
public LinkGenerator setReferrerImageURL(String referrerImageURL)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | referrerImageURL |
Returns
LinkGenerator
.
setBaseURL
Method signature
public LinkGenerator setBaseURL(String onelinkID, String domain, String appPackage)
Description
Input arguments
Type | Name | Description |
---|---|---|
String | onelinkID | |
String | domain | |
String | appPackage |
Returns
LinkGenerator
.
generateLink
Method signature
public String generateLink()
Description
Generates a long link.
Input arguments
This method doesn't take any input arguments.
Returns
String
.
generateLink
Method signature
public void generateLink(Context context, CreateOneLinkHttpTask.ResponseListener listener)
Description
Generates a short link using the OneLink API.
Input arguments
Type | Name | Description |
---|---|---|
Context | context | Application / Activity Context |
CreateOneLinkHttpTask.ResponseListener | listener |
Returns
void
.
Updated about 1 year ago