Contents

prepareInterface(for:)

Prepares the interface to display a prompt to save a password credential.

Declaration

func prepareInterface(for savePasswordRequest: ASSavePasswordRequest)

Discussion

The system calls this method to tell your extension’s view controller to prepare to present a prompt to save a password credential. After calling this method, the system presents the view controller to the user.

Upon success, call completeSavePasswordRequest(completionHandler:).

Always provide a way for someone to cancel the operation from your view controller, for example, by including a Cancel button in the navigation bar. When someone cancels the operation, call ASCredentialProviderExtensionContext/cancelRequest(with:), using userCanceled.