requestExport(for:)
Begins the export process.
Declaration
func requestExport(for extensionBundleIdentifier: String? = nil) async throws -> ASCredentialExportManager.ExportOptionsParameters
- extensionBundleIdentifier:
If your application contains more than one credential provider extension, pass the bundle identifier of the extension performing the export. If your application contains exactly one credential provider extension, you may pass
nilto indicate you’re exporting on behalf of that extension. If your application contains more than one credential provider extension, it’s an error to passnil.
Return Value
The selected set of export options.
Discussion
Calling this method brings up the out-of-process system UI that guides someone using your app through the export flow. After they determine the necessary options, this method returns the selected options to your app. At that point, call exportCredentials(_:) with the exported credentials in the specified format.
This method throws an error if the export can’t proceed, which occurs if there are no import apps available, or if the device isn’t configured with a passcode, Touch ID, or Face ID.