Skip to content

Commit

Permalink
[CHORE] Implemented share sheet listener callbacks for testbed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Renemari Padillo authored and Renemari Padillo committed Mar 1, 2016
1 parent bff6c97 commit 6377f1f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions testbed/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,21 @@ function ShowShareSheet()
};

branchUniversalObj.showShareSheet(properties, controlParams);

// Set listeners
branchUniversalObj.onShareSheetLaunched(function () {
console.log('Share sheet launched');
});
branchUniversalObj.onShareSheetDismissed(function () {
console.log('Share sheet dimissed');
});
branchUniversalObj.onLinkShareResponse(function (res) {
console.log('Share link response: ' + JSON.stringify(res));
});
branchUniversalObj.onChannelSelected(function (res) {
console.log('Channel selected: ' + JSON.stringify(res));
});

}

function ListOnSpotlight()
Expand Down

0 comments on commit 6377f1f

Please sign in to comment.