RestoreState

sealed class RestoreState

Represents the current state of an asynchronous purchase restoration process.

This sealed class is used by the onRestoreStateChanged callback in the com.revenuecat.purchases.slidetounlock.SlideToRestore composable to communicate the status of the underlying Purchases.restorePurchases() operation.

Inheritors

Types

Link copied to clipboard
data class Error(val exception: Exception) : RestoreState

Indicates that an error occurred during the purchase restoration process.

Link copied to clipboard
data object Loading : RestoreState

Indicates that the purchase restoration process is currently in progress. A network request has been initiated.

Link copied to clipboard
data class Success(val customerInfo: CustomerInfo) : RestoreState

Indicates that the purchase restoration completed successfully.