1616
1717#import < UIKit/UIKit.h>
1818
19- #import " FIRAuthProviderUI .h"
19+ #import " FUIAuthProvider .h"
2020
2121@class FIRAuth;
22- @class FIRAuthPickerViewController ;
23- @class FIRAuthUI ;
22+ @class FUIAuthPickerViewController ;
23+ @class FUIAuth ;
2424@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 ;
3030
3131NS_ASSUME_NONNULL_BEGIN
3232
33- /* * @typedef FIRAuthUIResultCallback
33+ /* * @typedef FUIAuthResultCallback
3434 @brief The type of block invoked when sign-in related events complete.
3535 @param user The user signed in, if any.
3636 @param error The error which occurred, if any.
3737 */
38- typedef void (^FIRAuthUIResultCallback )(FIRUser *_Nullable user, NSError *_Nullable error);
38+ typedef void (^FUIAuthResultCallback )(FIRUser *_Nullable user, NSError *_Nullable error);
3939
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 .
4242 */
43- @protocol FIRAuthUIDelegate <NSObject >
43+ @protocol FUIAuthDelegate <NSObject >
4444
4545/* * @fn authUI:didSignInWithUser:error:
4646 @brief Message sent after the sign in process has completed to report the signed in user or
4747 error encountered.
48- @param authUI The @c FIRAuthUI instance sending the messsage.
48+ @param authUI The @c FUIAuth instance sending the messsage.
4949 @param user The signed in user if the sign in attempt was successful.
5050 @param error The error that occured during sign in, if any.
5151 */
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 ;
5353
5454@optional
5555
5656/* * @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
5858 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.
6161 */
62- - (FIRAuthPickerViewController *)authPickerViewControllerForAuthUI : (FIRAuthUI *)authUI ;
62+ - (FUIAuthPickerViewController *)authPickerViewControllerForAuthUI : (FUIAuth *)authUI ;
6363
6464/* * @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
6666 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.
6969 */
70- - (FIREmailEntryViewController *)emailEntryViewControllerForAuthUI : (FIRAuthUI *)authUI ;
70+ - (FUIEmailEntryViewController *)emailEntryViewControllerForAuthUI : (FUIAuth *)authUI ;
7171
7272/* * @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
7474 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.
7676 @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.
7878 */
79- - (FIRPasswordSignInViewController *)passwordSignInViewControllerForAuthUI : (FIRAuthUI *)authUI
79+ - (FUIPasswordSignInViewController *)passwordSignInViewControllerForAuthUI : (FUIAuth *)authUI
8080 email : (NSString *)email ;
8181
8282/* * @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
8484 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.
8686 @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.
8888 */
89- - (FIRPasswordSignUpViewController *)passwordSignUpViewControllerForAuthUI : (FIRAuthUI *)authUI
89+ - (FUIPasswordSignUpViewController *)passwordSignUpViewControllerForAuthUI : (FUIAuth *)authUI
9090 email : (NSString *)email ;
9191
9292/* * @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
9494 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.
9696 @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.
9898 */
99- - (FIRPasswordRecoveryViewController *)passwordRecoveryViewControllerForAuthUI : (FIRAuthUI *)authUI
99+ - (FUIPasswordRecoveryViewController *)passwordRecoveryViewControllerForAuthUI : (FUIAuth *)authUI
100100 email : (NSString *)email ;
101101
102102/* * @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
104104 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.
106106 @param email The email user is using for sin-in.
107107 @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.
109109 */
110- - (FIRPasswordVerificationViewController *)passwordVerificationViewControllerForAuthUI : (FIRAuthUI *)authUI
110+ - (FUIPasswordVerificationViewController *)passwordVerificationViewControllerForAuthUI : (FUIAuth *)authUI
111111 email : (NSString *)email
112112 newCredential : (FIRAuthCredential *)newCredential ;
113113@end
114114
115- /* * @class FIRAuthUI
115+ /* * @class FUIAuth
116116 @brief Provides various iOS UIs for Firebase Auth.
117117 */
118- @interface FIRAuthUI : NSObject <NSSecureCoding >
118+ @interface FUIAuth : NSObject <NSSecureCoding >
119119
120120/* * @fn defaultAuthUI
121- @brief Gets the @c FIRAuthUI object for the default FirebaseApp.
121+ @brief Gets the @c FUIAuth object for the default FirebaseApp.
122122 @remarks Thread safe.
123123 */
124- + (nullable FIRAuthUI *)defaultAuthUI ;
124+ + (nullable FUIAuth *)defaultAuthUI ;
125125
126126/* * @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.
130130 @remarks Thread safe.
131131 */
132- + (nullable FIRAuthUI *)authUIWithAuth : (FIRAuth *)auth ;
132+ + (nullable FUIAuth *)authUIWithAuth : (FIRAuth *)auth ;
133133
134134/* * @property app
135135 @brief Gets the @c FIRAuth this auth UI object is connected to.
136136 */
137137@property (nonatomic , weak , readonly , nullable ) FIRAuth *auth;
138138
139139/* * @property providers
140- @brief The @c FIRAuthProviderUI implementations to use for sign-in.
140+ @brief The @c FUIAuthProvider implementations to use for sign-in.
141141 */
142- @property (nonatomic , copy ) NSArray <id<FIRAuthProviderUI >> *providers;
142+ @property (nonatomic , copy ) NSArray <id<FUIAuthProvider >> *providers;
143143
144144/* * @property signInWithEmailHidden
145145 @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
161161@property (nonatomic , copy , nullable ) NSURL *TOSURL;
162162
163163/* * @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 .
165165 */
166- @property (nonatomic , weak ) id <FIRAuthUIDelegate > delegate;
166+ @property (nonatomic , weak ) id <FUIAuthDelegate > delegate;
167167
168168/* * @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.
170170 */
171171- (nullable instancetype )init NS_UNAVAILABLE;
172172
0 commit comments