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 FIRUser.profileChangeRequest

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • The user’s display name. It is an error to set this property after calling FIRUserProfileChangeRequest.commitChangesWithCallback:

    Declaration

    Swift

    var displayName: String? { get set }

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *displayName;
  • The user’s photo URL. It is an error to set this property after calling FIRUserProfileChangeRequest.commitChangesWithCallback:

    Declaration

    Swift

    var photoURL: URL? { get set }

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSURL *photoURL;
  • Commits any pending changes. This method should only be called once. Once called, property values should not be changed.

    Declaration

    Swift

    func commitChanges(completion: UserProfileChangeCallback? = nil)

    Objective-C

    - (void)commitChangesWithCompletion:
        (nullable FIRUserProfileChangeCallback)completion;

    Parameters

    completion

    Optionally; the block invoked when the user profile change has been applied. Invoked asynchronously on the main thread in the future.