123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
-
-
- #import <Foundation/Foundation.h>
-
- @class FIRAuth;
- @class FIRPhoneAuthCredential;
- @protocol FIRAuthUIDelegate;
-
- NS_ASSUME_NONNULL_BEGIN
-
-
- extern NSString *const FIRPhoneAuthProviderID NS_SWIFT_NAME(PhoneAuthProviderID);
-
-
- extern NSString *const _Nonnull FIRPhoneAuthSignInMethod NS_SWIFT_NAME(PhoneAuthSignInMethod);
-
-
- typedef void (^FIRVerificationResultCallback)
- (NSString *_Nullable verificationID, NSError *_Nullable error)
- NS_SWIFT_NAME(VerificationResultCallback);
-
-
- NS_SWIFT_NAME(PhoneAuthProvider)
- @interface FIRPhoneAuthProvider : NSObject
-
-
- + (instancetype)provider NS_SWIFT_NAME(provider());
-
-
- + (instancetype)providerWithAuth:(FIRAuth *)auth NS_SWIFT_NAME(provider(auth:));
-
-
- - (void)verifyPhoneNumber:(NSString *)phoneNumber
- UIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
- completion:(nullable FIRVerificationResultCallback)completion;
-
-
- - (FIRPhoneAuthCredential *)credentialWithVerificationID:(NSString *)verificationID
- verificationCode:(NSString *)verificationCode;
-
-
- - (instancetype)init NS_UNAVAILABLE;
-
- @end
-
- NS_ASSUME_NONNULL_END
|