Aller au contenu

SharingResult

Ce contenu n’est pas encore disponible dans votre langue.

sealed interface SharingResult

How a sharing session ended. A session can produce several; the callback reports only the most significant: walletOpened > install > shared/copied > dismissed.

Shared
Copied
InstallStarted
WalletOpened
Dismissed
Failed
NameSummary
Copiedclass Copied(val link: String) : SharingResult
Dismissedobject Dismissed : SharingResult
Failedclass Failed(val error: FrakError) : SharingResult
InstallStartedobject InstallStarted : SharingResult
The user asked to install; the sheet took them to the wallet’s install page, or to the store with no identity to hand it. Informational only — do not call id.frak.sdk.AppLinkApi.openFrakApp again in response, and it doesn’t mean anything was installed.
Kindenum Kind : Enum<SharingResult.Kind>
Sharedclass Shared(val link: String) : SharingResult
WalletOpenedobject WalletOpened : SharingResult
The wallet was already installed and id.frak.sdk.AppLinkApi.openFrakApp opened it.
NameSummary
kindabstract val kind: SharingResult.Kind
Stable discriminator, one per arm. A when over Kind with an else survives a new arm; a when over the hierarchy does not. Kind.wireValue is spelled identically on iOS.