UserProfileChangeRequest
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.
-
Please use
User.createProfileChangeRequest()
instead. -
The user’s display name. It is an error to set this property after calling
commitChanges()
.Declaration
Swift
var displayName: String? { get set }
-
The user’s photo URL. It is an error to set this property after calling
commitChanges()
.Declaration
Swift
var photoURL: URL? { get set }
-
Commits any pending changes. This method should only be called once. Once called, property values should not be changed.
Declaration
Swift
func commitChanges() async throws
Parameters
completion
Optionally; the block invoked when the user profile change has been applied. Invoked asynchronously on the main thread in the future.