Skip to content

buildLink

suspend fun buildLink(request: SharingRequest): String?

Builds a share link for request.

null only when there is nothing to link to: the request carried no link, none of its products did, and neither the resolved config nor id.frak.sdk.core.FrakMetadata.homepageLink supplies one. That is answerable without a network round trip, so it is an absence rather than a failure.

FrakErrorwhen a link could have been built but could not be: tracking is disabled, the device refused key material, or no merchant could be resolved.