FIRUserProfileChangeRequest
@interface FIRUserProfileChangeRequest : NSObject
Represents an object capable of updating a user’s profile data. Properties are marked as being part of a profile update when they are set. Setting a property value to nil is not the same as leaving the property unassigned.
-
Please use
User.createProfileChangeRequest()
instead.Declaration
Objective-C
- (nonnull instancetype)init;
-
The user’s display name. It is an error to set this property after calling
commitChanges()
.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *displayName;
-
The user’s photo URL. It is an error to set this property after calling
commitChanges()
.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSURL *photoURL;
-
Commits any pending changes. This method should only be called once. Once called, property values should not be changed.
Declaration
Objective-C
- (void)commitChangesWithCompletion: (nullable void (^)(NSError *_Nullable))completion;
Parameters
completion
Optionally; the block invoked when the user profile change has been applied. Invoked asynchronously on the main thread in the future.