ArcXPCommerceManager

class ArcXPCommerceManager

Constructors

Link copied to clipboard
fun ArcXPCommerceManager()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun approveDeleteAccount(nonce: String, listener: ArcXPIdentityListener)
Link copied to clipboard
fun clearPaywallCache()
Link copied to clipboard
fun evaluatePage(    pageviewData: ArcXPPageviewData,     entitlements: ArcXPEntitlements? = null,     currentTime: Long? = Calendar.getInstance().timeInMillis,     listener: ArcXPPageviewListener)
fun evaluatePage(    pageId: String,     contentType: String?,     contentSection: String?,     deviceClass: String?,     otherConditions: HashMap<String, String>?,     entitlements: ArcXPEntitlements? = null): LiveData<ArcXPPageviewEvaluationResult>
fun evaluatePage(    pageId: String,     contentType: String?,     contentSection: String?,     deviceClass: String?,     otherConditions: HashMap<String, String>?,     entitlements: ArcXPEntitlements? = null,     listener: ArcXPPageviewListener)
Link copied to clipboard
fun evaluatePageNoTime(pageviewData: ArcXPPageviewData, listener: ArcXPPageviewListener)
Link copied to clipboard
fun evaluatePageTime(    pageId: String,     contentType: String?,     contentSection: String?,     deviceClass: String?,     otherConditions: HashMap<String, String>?,     entitlements: ArcXPEntitlements? = null,     currentTime: Long? = Calendar.getInstance().timeInMillis,     listener: ArcXPPageviewListener)
Link copied to clipboard
fun getAccessToken(): String?
Link copied to clipboard
fun getActivePaywallRules(listener: ArcXPRetailListener)
Link copied to clipboard
fun getAllActiveSubscriptions(listener: ArcXPSalesListener)
Link copied to clipboard
fun getAllSubscriptions(listener: ArcXPSalesListener)
Link copied to clipboard
fun getConfig(): ArcXPConfig?
Link copied to clipboard
fun getEntitlements(listener: ArcXPSalesListener)
Link copied to clipboard
fun getPaywallCache(): String?
Link copied to clipboard
fun getRecaptchaToken(): String?
Link copied to clipboard
fun getRefreshToken(): String?
Link copied to clipboard
fun getSubscriptionDetails(id: String, listener: ArcXPSalesListener?)
Link copied to clipboard
fun getUserProfile(listener: ArcXPIdentityListener? = null): LiveData<Either<ArcXPException, ArcXPProfileManage>>
Link copied to clipboard
fun login(    email: String,     password: String,     listener: ArcXPIdentityListener? = null)

fun login(    uuid: String,     accessToken: String,     refreshToken: String,     listener: ArcXPIdentityListener? = null)

Login using tokens from another ArcXP login method such as web

Link copied to clipboard
fun loginWithFacebook(fbLoginButton: LoginButton, listener: ArcXPIdentityListener? = null): LiveData<ArcXPAuth>
Link copied to clipboard
fun loginWithGoogle(activity: AppCompatActivity, listener: ArcXPIdentityListener? = null): LiveData<ArcXPAuth>
Link copied to clipboard
fun loginWithGoogleOneTap(activity: AppCompatActivity, listener: ArcXPIdentityListener)
Link copied to clipboard
fun logout(listener: ArcXPIdentityListener? = null)
Link copied to clipboard
fun logoutOfGoogle(listener: ArcXPIdentityListener)
Link copied to clipboard
fun onActivityResults(    requestCode: Int,     resultCode: Int,     data: Intent?,     listener: ArcXPIdentityListener)
Link copied to clipboard
fun redeemOneTimeAccessLink(nonce: String, listener: ArcXPIdentityListener)
Link copied to clipboard
fun refreshSession(listener: ArcXPIdentityListener)
fun refreshSession(token: String, listener: ArcXPIdentityListener)
Link copied to clipboard
fun rememberUser(remember: Boolean)
Link copied to clipboard
fun removeIdentity(grantType: String, listener: ArcXPIdentityListener)
Link copied to clipboard
fun requestDeleteAccount(listener: ArcXPIdentityListener)
Link copied to clipboard
fun requestOneTimeAccessLink(email: String, listener: ArcXPIdentityListener)
Link copied to clipboard
fun requestResetPassword(username: String, listener: ArcXPIdentityListener)
Link copied to clipboard
fun resetPassword(    nonce: String,     newPassword: String,     listener: ArcXPIdentityListener)
Link copied to clipboard
fun runRecaptcha(listener: ArcXPIdentityListener)
Link copied to clipboard
fun sendVerificationEmail(email: String, listener: ArcXPIdentityListener)
Link copied to clipboard
fun sessionIsActive(): Boolean
Link copied to clipboard
fun setAccessToken(token: String)
Link copied to clipboard
fun setRecaptchaToken(token: String)
Link copied to clipboard
fun signUp(    username: String,     password: String,     email: String,     firstname: String? = null,     lastname: String? = null,     listener: ArcXPIdentityListener? = null): LiveData<Either<ArcXPException, ArcXPUser>>
Link copied to clipboard
fun thirdPartyLogin(    token: String,     type: ArcXPAuthRequest.Companion.GrantType,     listener: ArcXPIdentityListener)
Link copied to clipboard
fun updatePassword(    newPassword: String,     oldPassword: String,     listener: ArcXPIdentityListener?): LiveData<Either<ArcXPException, ArcXPIdentity>>
Link copied to clipboard
fun updateProfile(update: ArcXPUpdateProfileRequest, listener: ArcXPIdentityListener): LiveData<Either<ArcXPException, ArcXPProfileManage>>
Link copied to clipboard
fun validateSession(listener: ArcXPIdentityListener)
Link copied to clipboard
fun verifyEmail(nonce: String, listener: ArcXPIdentityListener)

Properties

Link copied to clipboard
val errors: LiveData<ArcXPException>
Link copied to clipboard
val loggedInState: LiveData<Boolean>
Link copied to clipboard
lateinit var userSettingsManager: UserSettingsManager