Getting Started
复制一个包含安装步骤和本插件的完整Markdown指南的设置提示.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-autofill-save-password`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/autofill-save-password/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
您可以使用我们的AI辅助设置来安装插件。使用以下命令将Capgo技能添加到您的AI工具中:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins然后使用以下提示:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-autofill-save-password` plugin in my project.如果您更喜欢手动设置,请按照以下命令安装插件并遵循以下平台特定的说明:
bun add @capgo/capacitor-autofill-save-passwordbunx cap syncimport { SavePassword } from '@capgo/capacitor-autofill-save-password';API概述
标题为“API概述”的部分promptDialog
Section titled “promptDialog”保存密码到钥匙串。
import { SavePassword } from '@capgo/capacitor-autofill-save-password';
await SavePassword.promptDialog({ username: 'your-username', password: 'your-password'});readPassword
Section titled “readPassword”从钥匙串中读取密码。需要开发者为 iOS 应用设置关联域名。
import { SavePassword } from '@capgo/capacitor-autofill-save-password';
await SavePassword.readPassword();Options
Section titled “Options”export interface Options { /** * The username to save. */ username: string; /** * The password to save. */ password: string; /** * The url to save the password for. (For example: "console.capgo.app") * iOS only. */ url?: string;}ReadPasswordResult
Section titled “ReadPasswordResult”export interface ReadPasswordResult { /** * The username of the password. */ username: string; /** * The password of the password. */ password: string;}真实数据来源
真实数据来源本页面是由插件生成的 src/definitions.ts当公共 API 上游发生变化时,请重新运行同步。
继续从 Getting Started
继续从 Getting Started如果您正在使用 Getting Started 来规划身份验证和帐户流程,连接它到 使用 @capgo/capacitor-autofill-save-password 为在 Using @capgo/capacitor-autofill-save-password 中的原生功能 使用 @capgo/capacitor-social-login 对于 @capgo/capacitor-social-login 的实现细节 @capgo/capacitor-passkey 对于 @capgo/capacitor-passkey 的实现细节 @capgo/capacitor-native-biometric 对于 @capgo/capacitor-native-biometric 的实现细节,以及 双因素认证 对于双因素认证的实现细节