@Override public void onChannelSelected(String channelName) { Log.d(LCAT, "inside onChannelSelected"); Log.d(LCAT, "channelName: " + channelName); BranchUniversalObjectProxy self = BranchUniversalObjectProxy.this; KrollDict response = new KrollDict(); response.put("channelName", channelName); self.fireEvent("bio:shareChannelSelected", response); }
@Override public void onLinkCreate(String url, BranchError error) { Log.d(LCAT, "inside onLinkCreate"); BranchUniversalObjectProxy self = BranchUniversalObjectProxy.this; KrollDict response = new KrollDict(); if (error == null) { Log.d(LCAT, "link to share: " + url); response.put("generatedLink", url); } else { String errorMessage = error.getMessage(); Log.d(LCAT, errorMessage); response.put("error", errorMessage); } self.fireEvent("bio:generateShortUrl", response); }
@Override public void onLinkShareResponse(String sharedLink, String sharedChannel, BranchError error) { Log.d(LCAT, "inside onLinkCreate"); BranchUniversalObjectProxy self = BranchUniversalObjectProxy.this; KrollDict response = new KrollDict(); if (error == null) { response.put("sharedLink", sharedLink); response.put("sharedChannel", sharedChannel); Log.d(LCAT, "sharedLink: " + sharedLink); Log.d(LCAT, "sharedChannel: " + sharedChannel); } else { String errorMessage = error.getMessage(); Log.d(LCAT, errorMessage); response.put("error", errorMessage); } self.fireEvent("bio:shareLinkResponse", response); }
@Override public void onShareLinkDialogDismissed() { Log.d(LCAT, "inside onShareLinkDialogDismissed"); BranchUniversalObjectProxy self = BranchUniversalObjectProxy.this; self.fireEvent("bio:shareLinkDialogDismissed", null); }