SignUpAttributesRequiredDelegate
@objc
public protocol SignUpAttributesRequiredDelegate
Protocol that defines the methods of a SignUpAttributesRequired delegate
-
Notifies the delegate that the operation resulted in an error.
Declaration
Swift
@MainActor func onSignUpAttributesRequiredError(error: AttributesRequiredError)Parameters
errorAn error object indicating why the operation failed.
-
Notifies the delegate that there are some required attributes to be sent.
Note
If a flow requires this optional method and it is not implemented, thenonSignUpAttributesRequiredError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignUpAttributesRequired(attributes: [MSALNativeAuthRequiredAttribute], newState: SignUpAttributesRequiredState)Parameters
attributesList of required attributes.
newStateAn object representing the new state of the flow with follow on methods.
-
Notifies the delegate that invalid attributes were sent.
Note
If a flow requires this optional method and it is not implemented, thenonSignUpAttributesRequiredError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignUpAttributesInvalid(attributeNames: [String], newState: SignUpAttributesRequiredState)Parameters
attributeNamesList of attribute names that failed validation.
newStateAn object representing the new state of the flow with follow on methods.
-
Notifies the delegate that the sign up operation completed successfully.
Note
If a flow requires this optional method and it is not implemented, thenonSignUpAttributesRequiredError(error:)will be called.Declaration
Swift
@MainActor @objc optional func onSignUpCompleted(newState: SignInAfterSignUpState)Parameters
newStateAn object representing the new state of the flow with follow on methods.
View on GitHub