16
16
17
17
#import < UIKit/UIKit.h>
18
18
19
- #import " FIRAuthProviderUI .h"
19
+ #import " FUIAuthProvider .h"
20
20
21
21
@class FIRAuth;
22
- @class FIRAuthPickerViewController ;
23
- @class FIRAuthUI ;
22
+ @class FUIAuthPickerViewController ;
23
+ @class FUIAuth ;
24
24
@class FIRUser;
25
- @class FIREmailEntryViewController ;
26
- @class FIRPasswordSignInViewController ;
27
- @class FIRPasswordSignUpViewController ;
28
- @class FIRPasswordRecoveryViewController ;
29
- @class FIRPasswordVerificationViewController ;
25
+ @class FUIEmailEntryViewController ;
26
+ @class FUIPasswordSignInViewController ;
27
+ @class FUIPasswordSignUpViewController ;
28
+ @class FUIPasswordRecoveryViewController ;
29
+ @class FUIPasswordVerificationViewController ;
30
30
31
31
NS_ASSUME_NONNULL_BEGIN
32
32
33
- /* * @typedef FIRAuthUIResultCallback
33
+ /* * @typedef FUIAuthResultCallback
34
34
@brief The type of block invoked when sign-in related events complete.
35
35
@param user The user signed in, if any.
36
36
@param error The error which occurred, if any.
37
37
*/
38
- typedef void (^FIRAuthUIResultCallback )(FIRUser *_Nullable user, NSError *_Nullable error);
38
+ typedef void (^FUIAuthResultCallback )(FIRUser *_Nullable user, NSError *_Nullable error);
39
39
40
- /* * @protocol FIRAuthUIDelegate
41
- @brief A delegate that receives callbacks or provides custom UI for @c FIRAuthUI .
40
+ /* * @protocol FUIAuthDelegate
41
+ @brief A delegate that receives callbacks or provides custom UI for @c FUIAuth .
42
42
*/
43
- @protocol FIRAuthUIDelegate <NSObject >
43
+ @protocol FUIAuthDelegate <NSObject >
44
44
45
45
/* * @fn authUI:didSignInWithUser:error:
46
46
@brief Message sent after the sign in process has completed to report the signed in user or
47
47
error encountered.
48
- @param authUI The @c FIRAuthUI instance sending the messsage.
48
+ @param authUI The @c FUIAuth instance sending the messsage.
49
49
@param user The signed in user if the sign in attempt was successful.
50
50
@param error The error that occured during sign in, if any.
51
51
*/
52
- - (void )authUI : (FIRAuthUI *)authUI didSignInWithUser : (nullable FIRUser *)user error : (nullable NSError *)error ;
52
+ - (void )authUI : (FUIAuth *)authUI didSignInWithUser : (nullable FIRUser *)user error : (nullable NSError *)error ;
53
53
54
54
@optional
55
55
56
56
/* * @fn authPickerViewControllerForAuthUI:
57
- @brief Sent to the receiver to ask for an instance of @c FIRAuthPickerViewController subclass
57
+ @brief Sent to the receiver to ask for an instance of @c FUIAuthPickerViewController subclass
58
58
to allow UI customizations.
59
- @param authUI The @c FIRAuthUI instance sending the message.
60
- @return an instance of @c FIRAuthPickerViewController subclass.
59
+ @param authUI The @c FUIAuth instance sending the message.
60
+ @return an instance of @c FUIAuthPickerViewController subclass.
61
61
*/
62
- - (FIRAuthPickerViewController *)authPickerViewControllerForAuthUI : (FIRAuthUI *)authUI ;
62
+ - (FUIAuthPickerViewController *)authPickerViewControllerForAuthUI : (FUIAuth *)authUI ;
63
63
64
64
/* * @fn emailEntryViewControllerForAuthUI:
65
- @brief Sent to the receiver to ask for an instance of @c FIREmailEntryViewController subclass
65
+ @brief Sent to the receiver to ask for an instance of @c FUIEmailEntryViewController subclass
66
66
to allow UI customizations.
67
- @param authUI The @c FIRAuthUI instance sending the message.
68
- @return an instance of @c FIREmailEntryViewController subclass.
67
+ @param authUI The @c FUIAuth instance sending the message.
68
+ @return an instance of @c FUIEmailEntryViewController subclass.
69
69
*/
70
- - (FIREmailEntryViewController *)emailEntryViewControllerForAuthUI : (FIRAuthUI *)authUI ;
70
+ - (FUIEmailEntryViewController *)emailEntryViewControllerForAuthUI : (FUIAuth *)authUI ;
71
71
72
72
/* * @fn passwordSignInViewControllerForAuthUI:email:
73
- @brief Sent to the receiver to ask for an instance of @c FIRPasswordSignInViewController subclass
73
+ @brief Sent to the receiver to ask for an instance of @c FUIPasswordSignInViewController subclass
74
74
to allow sign-in UI customizations.
75
- @param authUI The @c FIRAuthUI instance sending the message.
75
+ @param authUI The @c FUIAuth instance sending the message.
76
76
@param email The email user is using for sin-in.
77
- @return an instance of @c FIRPasswordSignInViewController subclass.
77
+ @return an instance of @c FUIPasswordSignInViewController subclass.
78
78
*/
79
- - (FIRPasswordSignInViewController *)passwordSignInViewControllerForAuthUI : (FIRAuthUI *)authUI
79
+ - (FUIPasswordSignInViewController *)passwordSignInViewControllerForAuthUI : (FUIAuth *)authUI
80
80
email : (NSString *)email ;
81
81
82
82
/* * @fn passwordSignInViewControllerForAuthUI:email:
83
- @brief Sent to the receiver to ask for an instance of @c FIRPasswordSignUpViewController subclass
83
+ @brief Sent to the receiver to ask for an instance of @c FUIPasswordSignUpViewController subclass
84
84
to allow sign-up UI customizations.
85
- @param authUI The @c FIRAuthUI instance sending the message.
85
+ @param authUI The @c FUIAuth instance sending the message.
86
86
@param email The email user is using for sin-in.
87
- @return an instance of @c FIRPasswordSignUpViewController subclass.
87
+ @return an instance of @c FUIPasswordSignUpViewController subclass.
88
88
*/
89
- - (FIRPasswordSignUpViewController *)passwordSignUpViewControllerForAuthUI : (FIRAuthUI *)authUI
89
+ - (FUIPasswordSignUpViewController *)passwordSignUpViewControllerForAuthUI : (FUIAuth *)authUI
90
90
email : (NSString *)email ;
91
91
92
92
/* * @fn passwordRecoveryViewControllerForAuthUI:email:
93
- @brief Sent to the receiver to ask for an instance of @c FIRPasswordRecoveryViewController subclass
93
+ @brief Sent to the receiver to ask for an instance of @c FUIPasswordRecoveryViewController subclass
94
94
to allow sign-up UI customizations.
95
- @param authUI The @c FIRAuthUI instance sending the message.
95
+ @param authUI The @c FUIAuth instance sending the message.
96
96
@param email The email user is using for password recovery.
97
- @return an instance of @c FIRPasswordRecoveryViewController subclass.
97
+ @return an instance of @c FUIPasswordRecoveryViewController subclass.
98
98
*/
99
- - (FIRPasswordRecoveryViewController *)passwordRecoveryViewControllerForAuthUI : (FIRAuthUI *)authUI
99
+ - (FUIPasswordRecoveryViewController *)passwordRecoveryViewControllerForAuthUI : (FUIAuth *)authUI
100
100
email : (NSString *)email ;
101
101
102
102
/* * @fn passwordVerificationViewControllerForAuthUI:email:newCredential:
103
- @brief Sent to the receiver to ask for an instance of @c FIRPasswordVerificationViewController subclass
103
+ @brief Sent to the receiver to ask for an instance of @c FUIPasswordVerificationViewController subclass
104
104
to allow password verification UI customizations.
105
- @param authUI The @c FIRAuthUI instance sending the message.
105
+ @param authUI The @c FUIAuth instance sending the message.
106
106
@param email The email user is using for sin-in.
107
107
@param newCredential This @c FIRAuthCredential obtained from linked account.
108
- @return an instance of @c FIRPasswordVerificationViewController subclass.
108
+ @return an instance of @c FUIPasswordVerificationViewController subclass.
109
109
*/
110
- - (FIRPasswordVerificationViewController *)passwordVerificationViewControllerForAuthUI : (FIRAuthUI *)authUI
110
+ - (FUIPasswordVerificationViewController *)passwordVerificationViewControllerForAuthUI : (FUIAuth *)authUI
111
111
email : (NSString *)email
112
112
newCredential : (FIRAuthCredential *)newCredential ;
113
113
@end
114
114
115
- /* * @class FIRAuthUI
115
+ /* * @class FUIAuth
116
116
@brief Provides various iOS UIs for Firebase Auth.
117
117
*/
118
- @interface FIRAuthUI : NSObject <NSSecureCoding >
118
+ @interface FUIAuth : NSObject <NSSecureCoding >
119
119
120
120
/* * @fn defaultAuthUI
121
- @brief Gets the @c FIRAuthUI object for the default FirebaseApp.
121
+ @brief Gets the @c FUIAuth object for the default FirebaseApp.
122
122
@remarks Thread safe.
123
123
*/
124
- + (nullable FIRAuthUI *)defaultAuthUI ;
124
+ + (nullable FUIAuth *)defaultAuthUI ;
125
125
126
126
/* * @fn authUIWithAuth:
127
- @brief Gets the @c FIRAuthUI instance for a @c FIRAuth.
128
- @param auth The @c FIRAuth for which to retrieve the associated @c FIRAuthUI instance.
129
- @return The @c FIRAuthUI instance associated with the given @c FIRAuth.
127
+ @brief Gets the @c FUIAuth instance for a @c FIRAuth.
128
+ @param auth The @c FIRAuth for which to retrieve the associated @c FUIAuth instance.
129
+ @return The @c FUIAuth instance associated with the given @c FIRAuth.
130
130
@remarks Thread safe.
131
131
*/
132
- + (nullable FIRAuthUI *)authUIWithAuth : (FIRAuth *)auth ;
132
+ + (nullable FUIAuth *)authUIWithAuth : (FIRAuth *)auth ;
133
133
134
134
/* * @property app
135
135
@brief Gets the @c FIRAuth this auth UI object is connected to.
136
136
*/
137
137
@property (nonatomic , weak , readonly , nullable ) FIRAuth *auth;
138
138
139
139
/* * @property providers
140
- @brief The @c FIRAuthProviderUI implementations to use for sign-in.
140
+ @brief The @c FUIAuthProvider implementations to use for sign-in.
141
141
*/
142
- @property (nonatomic , copy ) NSArray <id<FIRAuthProviderUI >> *providers;
142
+ @property (nonatomic , copy ) NSArray <id<FUIAuthProvider >> *providers;
143
143
144
144
/* * @property signInWithEmailHidden
145
145
@brief Whether to hide the "Sign in with email" option, defaults to NO.
@@ -161,12 +161,12 @@ typedef void (^FIRAuthUIResultCallback)(FIRUser *_Nullable user, NSError *_Nulla
161
161
@property (nonatomic , copy , nullable ) NSURL *TOSURL;
162
162
163
163
/* * @property delegate
164
- @brief A delegate that receives callbacks or provides custom UI for @c FIRAuthUI .
164
+ @brief A delegate that receives callbacks or provides custom UI for @c FUIAuth .
165
165
*/
166
- @property (nonatomic , weak ) id <FIRAuthUIDelegate > delegate;
166
+ @property (nonatomic , weak ) id <FUIAuthDelegate > delegate;
167
167
168
168
/* * @fn init
169
- @brief Please use @c FIRAuthUI .authUIWithAuth to get a @c FIRAuthUI instance.
169
+ @brief Please use @c FUIAuth .authUIWithAuth to get a @c FUIAuth instance.
170
170
*/
171
171
- (nullable instancetype )init NS_UNAVAILABLE;
172
172
0 commit comments