Registration Check

Verify users eligibility for registration.

Android

/**
* @return EligibleToRegister Bool - User able to register.
*/
fun registrationCheck(): VsLiveData<EligibleToRegister>
SDK.Account.registrationCheck()
  .observe(object : VsObserver<EligibilityStatus>() {
    override fun onError(error: Throwable) {
    }

    override fun onChanged(t: EligibilityStatus) {
    }
  })

iOS

/// - Parameters:
///   - completionHandler: Closure that returns a Bool represeneting registration eligibility
registrationCheck(completion: @escaping (APIManager.EligibleToRegister) -> Void)
VersusSDK?.registrationCheck(completion: { (canRegister) in
    if canRegister {
        // user is able to register
    } else {
        // handle unable to register
    }
})