Package 

Interface Branch.BranchLinkShareListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onShareLinkDialogLaunched() Callback method to update when share link dialog is launched.
      abstract void onShareLinkDialogDismissed() Callback method to update when sharing dialog is dismissed.
      abstract void onLinkShareResponse(String sharedLink, String sharedChannel, BranchError error) Callback method to update the sharing status.
      abstract void onChannelSelected(String channelName) Called when user select a channel for sharing a deep link.Branch will create a deep link for the selected channel and share with it after calling thismethod.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onShareLinkDialogLaunched

         abstract void onShareLinkDialogLaunched()

        Callback method to update when share link dialog is launched.

      • onShareLinkDialogDismissed

         abstract void onShareLinkDialogDismissed()

        Callback method to update when sharing dialog is dismissed.

      • onLinkShareResponse

         abstract void onLinkShareResponse(String sharedLink, String sharedChannel, BranchError error)

        Callback method to update the sharing status. Called on sharing completed or on error.

        Parameters:
        sharedLink - The link shared to the channel.
        sharedChannel - Channel selected for sharing.
        error - A BranchError to update errors, if there is any.
      • onChannelSelected

         abstract void onChannelSelected(String channelName)

        Called when user select a channel for sharing a deep link.Branch will create a deep link for the selected channel and share with it after calling thismethod. On sharing complete, status is updated by onLinkShareResponse() callback. Considerhaving a sharing in progress UI if you wish to prevent user activity in the window between selecting a channeland sharing complete.

        Parameters:
        channelName - Name of the selected application to share the link.