-
public interface Branch.BranchLinkShareListenerAn Interface class that is implemented by all classes that make use of BranchLinkShareListener, defining methods to listen for link sharing status.
-
-
Method Summary
Modifier and Type Method Description abstract voidonShareLinkDialogLaunched()Callback method to update when share link dialog is launched. abstract voidonShareLinkDialogDismissed()Callback method to update when sharing dialog is dismissed. abstract voidonLinkShareResponse(String sharedLink, String sharedChannel, BranchError error)Callback method to update the sharing status. abstract voidonChannelSelected(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. -
-
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.
-
-
-
-