Skip to content
Discussion options

You must be logged in to vote

Thanks for contributing!

Even though Swift doesn't support abstract classes, the transpiled Kotlin doesn't know that 😁

I think something like this should do the trick:

#if SKIP
class VerificationStateChangedCallbacks: com.google.firebase.auth.PhoneAuthProvider.OnVerificationStateChangedCallbacks {
    init() {
    }

    override func onVerificationCompleted(credential: com.google.firebase.auth.PhoneAuthCredential) {
        logger.log("onVerificationCompleted: \(credential)")
    }

    override func onVerificationFailed(exception: com.google.firebase.FirebaseException) {
        logger.log("onVerificationFailed: \(exception)")
    }
}

#endif

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by stallent
Comment options

You must be logged in to vote
1 reply
@DaveKoz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants