public static interface Branch.BranchLinkShareListener
An Interface class that is implemented by all classes that make use of
Branch.BranchLinkShareListener
, defining methods to listen for link sharing status.
Modifier and Type | Method and Description |
---|---|
void |
onChannelSelected(java.lang.String channelName)
Called when user select a channel for sharing a deep link.
|
void |
onLinkShareResponse(java.lang.String sharedLink,
java.lang.String sharedChannel,
BranchError error)
Callback method to update the sharing status.
|
void |
onShareLinkDialogDismissed()
Callback method to update when sharing dialog is dismissed.
|
void |
onShareLinkDialogLaunched()
Callback method to update when share link dialog is launched.
|
void onShareLinkDialogLaunched()
Callback method to update when share link dialog is launched.
void onShareLinkDialogDismissed()
Callback method to update when sharing dialog is dismissed.
void onLinkShareResponse(java.lang.String sharedLink, java.lang.String sharedChannel, BranchError error)
Callback method to update the sharing status. Called on sharing completed or on error.
sharedLink
- The link shared to the channel.sharedChannel
- Channel selected for sharing.error
- A BranchError
to update errors, if there is any.void onChannelSelected(java.lang.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 this method. On sharing complete, status is updated by onLinkShareResponse() callback. Consider having a sharing in progress UI if you wish to prevent user activity in the window between selecting a channel and sharing complete.
channelName
- Name of the selected application to share the link. An empty string is returned if unable to resolve selected client name.