Contents

update(to:)

Changes the session to use the specified configuration.

Declaration

func update(to configuration: AEAssessmentConfiguration)

Parameters

  • configuration:

    A new configuration to use for the session.

Discussion

After you call this method, the session tries to apply the new configuration and then calls its delegate’s assessmentSessionDidUpdate(_:) method to indicate success, or the delegate’s assessmentSession(_:failedToUpdateTo:error:) method to indicate failure. Wait to receive one of these callbacks before proceeding with an assessment, and be sure to handle the failure case.

See Also

Managing session configuration