handleSailthruLinkResult

If you're using Marigold email with universal links, your application will open with an encoded Marigold link url. This method will decode the link URL and return its canonical location (ie https://link.sailthru.com/blahblah will redirect to https://www.sailthru.com/careers/list/, the link's canonical location), as well as making sure that the clickthrough metrics for this link are correctly attributed in the Marigold platform. This method should be called from your receiving activity's onStart() method, and handle the starting intent's link data

Return

Result containing either the unwrapped Uri or an error.

Parameters

uri

the Marigold Link to be unrolled

Throws

when the URI given isn't a Marigold link