addAccount(name: string, callback: AsyncCallback<void>): void; addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>): void; addAccount(name: string, extraInfo?: string): Promise<void>;
|
添加应用帐号。
|
addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
|
隐式添加应用帐号。
|
deleteAccount(name: string, callback: AsyncCallback<void>): void; disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void; deleteAccount(name: string): Promise<void>;
|
删除应用帐号。
|
enableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void; enableAppAccess(name: string, bundleName: string): Promise<void>;
|
应用帐号信息访问授权。
|
disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void; disableAppAccess(name: string, bundleName: string): Promise<void>;
|
应用帐号信息访问取消授权。
|
checkAppAccess(name: string, bundleName: string, callback: AsyncCallback>boolean>): void; checkAppAccess(name: string, bundleName: string): Promise>boolean>;
|
检查应用帐号信息访问授权。
|
checkAppAccountSyncEnable(name: string, callback: AsyncCallback<boolean>): void; checkAppAccountSyncEnable(name: string): Promise<boolean>;
|
检查应用帐号同步状态。
|
setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback<void>): void; setAccountCredential(name: string, credentialType: string, credential: string): Promise<void>;
|
设置应用帐号认证信息。
|
deleteAccountCredential(name: string, credentialType: string, callback: AsyncCallback<void>): void; deleteAccountCredential(name: string, credentialType: string): Promise<void>;
|
删除应用帐号认证信息。
|
setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback<void>): void; setAccountExtraInfo(name: string, extraInfo: string): Promise<void>;
|
设置应用帐号附加信息。
|
setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback<void>): void; setAppAccountSyncEnable(name: string, isEnable: boolean): Promise<void>;
|
设置应用帐号同步状态。
|
setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback<void>): void; setAssociatedData(name: string, key: string, value: string): Promise<void>;
|
设置应用帐号关联数据。
|
getAllAccounts(owner: string, callback: AsyncCallback<Array<AppAccountInfo>>): void; getAllAccounts(owner: string): Promise<Array<AppAccountInfo>>;
|
查询指定包名下应用帐号信息。
|
getAllAccessibleAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void; getAllAccessibleAccounts(): Promise<Array<AppAccountInfo>>;
|
查询指定包名下应用帐号信息。
|
getAccountCredential(name: string, credentialType: string, callback: AsyncCallback<string>): void; getAccountCredential(name: string, credentialType: string): Promise<string>;
|
查询应用帐号认证信息。
|
getAccountExtraInfo(name: string, callback: AsyncCallback<string>): void; getAccountExtraInfo(name: string): Promise<string>;
|
查询应用帐号附加信息。
|
getAssociatedData(name: string, key: string, callback: AsyncCallback<string>): void; getAssociatedData(name: string, key: string): Promise<string>;
|
查询应用帐号关联信息。
|
getAssociatedDataSync(name: string, key: string): string;
|
同步获取与指定帐户关联的数据。
|
on(type: 'change', owners: Array<string>, callback: Callback<Array<AppAccountInfo>>): void;
|
订阅应用帐号信息变化。
|
off(type: 'change', callback?: Callback<void>): void;
|
取消订阅应用帐号信息变化。
|
authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
|
鉴权应用帐号以获取OAuth令牌。
|
getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback<string>): void; getOAuthToken(name: string, owner: string, authType: string): Promise<string>;
|
查询应用帐号OAuth令牌。
|
setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback<void>): void; setOAuthToken(name: string, authType: string, token: string): Promise<void>;
|
设置应用帐号OAuth令牌。
|
deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback<void>): void; deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise<void>;
|
删除应用帐号OAuth令牌。
|
setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback<void>): void; setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise<void>;
|
设置应用帐号OAuth令牌的可见性。
|
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback<boolean>): void; checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise<boolean>;
|
检查应用帐号OAuth令牌的可见性。
|
getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback<Array<OAuthTokenInfo>>): void; getAllOAuthTokens(name: string, owner: string): Promise<Array<OAuthTokenInfo>>;
|
查询所有可见的应用帐号OAuth令牌。
|
getOAuthList(name: string, authType: string, callback: AsyncCallback<Array<string>>): void; getOAuthList(name: string, authType: string): Promise<Array<string>>;
|
查询应用帐号OAuth令牌的授权列表。
|
getAuthenticatorCallback(sessionId: string, callback: AsyncCallback<AuthenticatorCallback>): void; getAuthenticatorCallback(sessionId: string): Promise<AuthenticatorCallback>;
|
查询应用帐号OAuth认证器回调。
|
getAuthenticatorInfo(owner: string, callback: AsyncCallback<AuthenticatorInfo>): void; getAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo>;
|
查询应用帐号OAuth认证器信息。
|
checkAccountLabels(name: string, owner: string, labels: Array<string>, callback: AsyncCallback<boolean>): void; checkAccountLabels(name: string, owner: string, labels: Array<string>): Promise<boolean>;
|
检查帐号标签。
|
selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback<Array<AppAccountInfo>>); selectAccountsByOptions(options: SelectAccountsOptions): Promise<Array<AppAccountInfo>>;
|
根据选项选择帐号。
|
verifyCredential(name: string, owner: string, callback: AuthenticatorCallback): void; verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void;
|
根据选项验证凭据。
|
setAuthenticatorProperties(owner: string, callback: AuthenticatorCallback): void; setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthenticatorCallback): void;
|
设置认证器属性。
|