public class BranchContentUrlBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
alias_ |
protected Branch |
branchReferral_ |
protected java.lang.String |
channel_ |
protected int |
duration_ |
protected java.lang.String |
feature_ |
protected org.json.JSONObject |
params_ |
protected java.lang.String |
stage_ |
protected java.util.ArrayList<java.lang.String> |
tags_ |
protected int |
type_ |
| Constructor and Description |
|---|
BranchContentUrlBuilder(android.content.Context context,
java.lang.String channel) |
| Modifier and Type | Method and Description |
|---|---|
T |
addParameters(java.lang.String key,
org.json.JSONArray value) |
T |
addParameters(java.lang.String key,
java.lang.String value)
Adds the the given key value pair to the parameters associated with this link.
|
T |
addTag(java.lang.String tag)
Adds a tag to the iterable collection of name associated with a deep link.
|
T |
addTags(java.util.List<java.lang.String> tags)
Adds a tag to the iterable collection of name associated with a deep link.
|
void |
generateContentUrl(Branch.BranchLinkCreateListener callback)
Configures and requests a content URL to be generated by the Branch servers, via a asynchronous
call; The
Branch.BranchLinkCreateListener is called back with the url when the url is generated. |
protected void |
generateUrl(Branch.BranchLinkCreateListener callback) |
java.lang.String |
getContentUrl()
Configures and requests a content URL to be generated by the Branch servers, via a synchronous
call.
|
protected java.lang.String |
getUrl() |
protected org.json.JSONObject params_
protected java.lang.String channel_
protected java.lang.String feature_
protected java.lang.String stage_
protected java.lang.String alias_
protected int type_
protected int duration_
protected java.util.ArrayList<java.lang.String> tags_
protected Branch branchReferral_
public BranchContentUrlBuilder(android.content.Context context,
java.lang.String channel)
public java.lang.String getContentUrl()
Configures and requests a content URL to be generated by the Branch servers, via a synchronous call.
String containing the resulting content URL. Null is returned in case of an error or if Branch is not initialised.public void generateContentUrl(Branch.BranchLinkCreateListener callback)
Configures and requests a content URL to be generated by the Branch servers, via a asynchronous
call; The Branch.BranchLinkCreateListener is called back with the url when the url is generated.
callback - A Branch.BranchLinkCreateListener callback instance that will triggerpublic T 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 T addTags(java.util.List<java.lang.String> tags)
Adds a tag to the iterable collection of name associated with a deep link.
tags - List with collection of tags associated with a deep link.public T addParameters(java.lang.String key,
java.lang.String value)
Adds the the given key value pair to the parameters associated with this link.
key - A String with value of key for the parametervalue - A String with value of value for the parameterpublic T addParameters(java.lang.String key,
org.json.JSONArray value)
protected java.lang.String getUrl()
protected void generateUrl(Branch.BranchLinkCreateListener callback)