Subscriptions

interface Subscriptions

Functions

Link copied to clipboard
abstract suspend fun getAccessToken(): String?

This method returns a String with the access token for the authenticated user or null if it doesn't exist or any errors arise.

Link copied to clipboard
abstract fun getEntitlementStatus(): Flow<List<Product>>

This method returns a true if a given product can be found in the entitlements list or false otherwise

Link copied to clipboard
Link copied to clipboard
abstract suspend fun isEligible(): Boolean
Link copied to clipboard
abstract fun isPrivacyProUrl(uri: Uri): Boolean
Link copied to clipboard
abstract fun launchPrivacyPro(context: Context, uri: Uri?)

Launches Privacy Pro with Settings as the parent activity

Link copied to clipboard