devsite/tools/jazzy/templates

FirebaseAuth Framework Reference

UserProfileChangeRequest

@available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)
@objc(FIRUserProfileChangeRequest)
open class UserProfileChangeRequest : 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.

  • The name of the user.

    Declaration

    Swift

    @objc
    open var displayName: String? { get set }
  • The URL of the user’s profile photo.

    Declaration

    Swift

    @objc
    open var photoURL: URL? { get set }
  • Commits any pending changes.

    Invoked asynchronously on the main thread in the future.

    This method should only be called once.Once called, property values should not be changed.

    Declaration

    Swift

    @objc
    open func commitChanges(completion: ((Error?) -> Void)? = nil)

    Parameters

    completion

    Optionally; the block invoked when the user profile change has been applied.

  • Commits any pending changes.

    This method should only be called once. Once called, property values should not be changed.

    Declaration

    Swift

    @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)
    open func commitChanges() async throws