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

TypeNameDescription
StringdeeplinkPath

Returns
LinkGenerator.

setBaseDeeplink

Method signature

public LinkGenerator setBaseDeeplink(String baseDeeplink)

Description

Input arguments

TypeNameDescription
StringbaseDeeplink

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

TypeNameDescription
Stringchannel

Returns
LinkGenerator.

setReferrerCustomerId

Method signature

public LinkGenerator setReferrerCustomerId(String referrerCustomerId)

Description

Input arguments

TypeNameDescription
StringreferrerCustomerId

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

TypeNameDescription
Stringcampaign

Returns
LinkGenerator.

addParameter

Method signature

public LinkGenerator addParameter(String key, String value)

Description

Input arguments

TypeNameDescription
StringkeyParameter name.
StringvalueParameter value.

Returns
LinkGenerator.

addParameters

Method signature

public LinkGenerator addParameters(Map<String, String> parameters)

Description

Input arguments

TypeNameDescription
Map<String, String>parameters

Returns
LinkGenerator.

setReferrerUID

Method signature

public LinkGenerator setReferrerUID(String referrerUID)

Description

Input arguments

TypeNameDescription
StringreferrerUID

Returns
LinkGenerator.

setReferrerName

Method signature

public LinkGenerator setReferrerName(String referrerName)

Description

Input arguments

TypeNameDescription
StringreferrerName

Returns
LinkGenerator.

setReferrerImageURL

Method signature

public LinkGenerator setReferrerImageURL(String referrerImageURL)

Description

Input arguments

TypeNameDescription
StringreferrerImageURL

Returns
LinkGenerator.

setBaseURL

Method signature

public LinkGenerator setBaseURL(String onelinkID, String domain, String appPackage)

Description

Input arguments

TypeNameDescription
StringonelinkID
Stringdomain
StringappPackage

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

TypeNameDescription
ContextcontextApplication / Activity Context
CreateOneLinkHttpTask.ResponseListenerlistener

Returns
void.