PhoneAuthCredential(PhoneAuthCredential rhs)
Properties | |
---|---|
SmsCode | string Gets the auto-retrieved SMS verification code if applicable. |
Public functions | |
---|---|
Dispose(bool disposing) | virtual override void |
stringSmsCode
Gets the auto-retrieved SMS verification code if applicable.
This method is supported on Android devices only. It will return empty strings on other platforms.
When SMS verification is used, you will be called back first via PhoneAuthProvider.CodeSent, and later PhoneAuthProvider.VerificationCompleted with a PhoneAuthCredential containing a non-null SMS code if auto-retrieval succeeded. If Firebase used another approach to verify the phone number and triggers a callback via PhoneAuthProvider.VerificationCompleted, then the SMS code can be null.
virtualoverridevoidDispose(booldisposing)
PhoneAuthCredential()
PhoneAuthCredential(PhoneAuthCredentialrhs)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-09 UTC.