Package 

Class BranchShortLinkBuilder


  • 
    public class BranchShortLinkBuilder
    extends BranchUrlBuilder<BranchShortLinkBuilder>
                        

    Class for creating builder for getting a short url with Branch. This builder provide an easy and flexible way to configure and create a short url Synchronously or asynchronously.

    • Constructor Detail

      • BranchShortLinkBuilder

        BranchShortLinkBuilder(Context context)
    • Method Detail

      • setDuration

         BranchShortLinkBuilder setDuration(int duration)

        Sets the amount of time that Branch allows a click to remain outstanding.

        Parameters:
        duration - A Integer value specifying the time that Branch allows a click toremain outstanding and be eligible to be matched with a new app session.
      • setFeature

         BranchShortLinkBuilder setFeature(String feature)

        Set a name that identifies the feature that the link makes use of.

        Parameters:
        feature - A String value identifying the feature that the link makes use of.Should not exceed 128 characters.
      • setParameters

         BranchShortLinkBuilder setParameters(JSONObject parameters)

        Set the parameters associated with the link.

        Parameters:
        parameters - A JSONObject value containing the deep linked params associated withthe link that will be passed into a new app session when clicked.
      • setStage

         BranchShortLinkBuilder setStage(String stage)

        Set a name that identify the stage in an application or user flow process.

        Parameters:
        stage - A String value identifying the stage in an application or user flowprocess.
      • setType

         BranchShortLinkBuilder setType(int type)

        Sets an that can be used for scenarios where you want the link toonly deep link the first time or unlimited times

        Parameters:
        type - that can be used for scenarios where you want the link toonly deep link the first time.
      • getShortUrl

         String getShortUrl()

        Configures and requests a short URL to be generated by the Branch servers, via a synchronouscall; with a duration specified within which an app session should be matched to the link.