public class LinkProperties
extends java.lang.Object
implements android.os.Parcelable
Class for representing any additional information that is specific to the link. Use this class to specify the properties of a deep link such as channel, feature etc and any control params associated with the link.
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
Constructor and Description |
---|
LinkProperties()
Create an instance of
LinkProperties |
Modifier and Type | Method and Description |
---|---|
LinkProperties |
addControlParameter(java.lang.String key,
java.lang.String value)
Adds any control params that control the behaviour of the link.
|
LinkProperties |
addTag(java.lang.String tag)
Adds a tag to the iterable collection of name associated with a deep link.
|
int |
describeContents() |
java.lang.String |
getAlias()
Get the alias for this link.
|
java.lang.String |
getCampaign()
Gets the campaign for this link.
|
java.lang.String |
getChannel()
Gets the channel for this link.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getControlParams()
Get all control params associated with this
LinkProperties |
java.lang.String |
getFeature()
Get a name that identifies the feature that the link makes use of.
|
int |
getMatchDuration()
Get the amount of time that Branch allows a click to remain outstanding.
|
static LinkProperties |
getReferredLinkProperties()
Create a
LinkProperties object based on the latest link click. |
java.lang.String |
getStage()
Get a name that identify the stage in an application or user flow process.
|
java.util.ArrayList<java.lang.String> |
getTags()
Get the list of tags associated with this
LinkProperties |
LinkProperties |
setAlias(java.lang.String alias)
Sets the alias for this link.
|
LinkProperties |
setCampaign(java.lang.String campaign)
Sets the campaign for this link.
|
LinkProperties |
setChannel(java.lang.String channel)
Sets the channel for this link.
|
LinkProperties |
setDuration(int duration)
Sets the amount of time that Branch allows a click to remain outstanding.
|
LinkProperties |
setFeature(java.lang.String feature)
Set a name that identifies the feature that the link makes use of.
|
LinkProperties |
setStage(java.lang.String stage)
Set a name that identify the stage in an application or user flow process.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public LinkProperties()
LinkProperties
public LinkProperties setAlias(java.lang.String alias)
Sets the alias for this link.
alias
- Link 'alias' can be used to label the endpoint on the link.
For example: http://bnc.lt/AUSTIN28. Should not exceed 128 characters
public LinkProperties addTag(java.lang.String tag)
Adds a tag to the iterable collection of name associated with a deep link.
tag
- String
tags associated with a deep link.public LinkProperties addControlParameter(java.lang.String key, java.lang.String value)
Adds any control params that control the behaviour of the link. Control parameters include Custom redirect url ($android_url,$ios_url), path for auto deep linking($android_deeplink_path,$deeplink_path) etc
key
- A String
with value of key for the parametervalue
- A String
with value of value for the parameterpublic LinkProperties setFeature(java.lang.String feature)
Set a name that identifies the feature that the link makes use of.
feature
- A String
value identifying the feature that the link makes use of.
Should not exceed 128 characters.public LinkProperties setDuration(int duration)
Sets the amount of time that Branch allows a click to remain outstanding.
duration
- A Integer
value specifying the time that Branch allows a click to
remain outstanding and be eligible to be matched with a new app session.public LinkProperties setStage(java.lang.String stage)
Set a name that identify the stage in an application or user flow process.
stage
- A String
value identifying the stage in an application or user flow
process. Should not exceed 128 characters.public LinkProperties setChannel(java.lang.String channel)
Sets the channel for this link.
channel
- A String
denoting the channel that the link belongs to. Should not
exceed 128 characters.public LinkProperties setCampaign(java.lang.String campaign)
Sets the campaign for this link.
campaign
- A String
denoting the campaign that the link belongs to. Should not
exceed 128 characters.public java.util.ArrayList<java.lang.String> getTags()
LinkProperties
ArrayList
with the tags associated with this LinkProperties
public java.util.HashMap<java.lang.String,java.lang.String> getControlParams()
LinkProperties
HashMap
with key value pairs for the control params associated with this LinkProperties
public int getMatchDuration()
Get the amount of time that Branch allows a click to remain outstanding.
Integer
value specifying the time that Branch allows a click to
remain outstanding and be eligible to be matched with a new app session.public java.lang.String getAlias()
Get the alias for this link.
String
with value alias 'alias' used to label the endpoint on the link.public java.lang.String getFeature()
Get a name that identifies the feature that the link makes use of.
String
value identifying the feature that the link makes use of.public java.lang.String getStage()
Get a name that identify the stage in an application or user flow process.
String
value identifying the stage in an application or user flow
processpublic java.lang.String getChannel()
Gets the channel for this link.
String
denoting the channel that the link belongs topublic java.lang.String getCampaign()
Gets the campaign for this link.
String
denoting the campaign that the link belongs topublic int describeContents()
describeContents
in interface android.os.Parcelable
public static LinkProperties getReferredLinkProperties()
LinkProperties
object based on the latest link click.LinkProperties
object based on the latest link click or a null if there is no link click registered for this sessionpublic void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable