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 suspend fun getAvailableProducts(): Set<Product>

This is a suspend function because we access disk IO You DO NOT need to set any dispatcher to call this suspend function

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 suspend fun isSignedIn(): Boolean

Checks if the user is currently signed in.

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

Launches Privacy Pro with Settings as the parent activity

Link copied to clipboard