当前位置: 首页 > news >正文

diy学做衣服网站合肥网站优化方案

diy学做衣服网站,合肥网站优化方案,杭州手机网站开发,网站建设 流程分布式帐号管理 本模块提供管理分布式帐号的一些基础功能#xff0c;主要包括查询和更新帐号登录状态。 说明#xff1a; 本模块首批接口从API version 7开始支持。后续版本的新增接口#xff0c;采用上角标单独标记接口的起始版本。开发前请熟悉鸿蒙开发指导文档#xff…分布式帐号管理 本模块提供管理分布式帐号的一些基础功能主要包括查询和更新帐号登录状态。 说明 本模块首批接口从API version 7开始支持。后续版本的新增接口采用上角标单独标记接口的起始版本。开发前请熟悉鸿蒙开发指导文档gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md点击或者复制转到。 导入模块 import account_distributedAccount from ohos.account.distributedAccount;account_distributedAccount.getDistributedAccountAbility getDistributedAccountAbility(): DistributedAccountAbility 获取分布式帐号单实例对象。 系统能力 SystemCapability.Account.OsAccount 返回值 | 类型 | 说明 | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | | [DistributedAccountAbility]| 返回一个实例实例提供查询和更新分布式帐号登录状态方法。 | 示例 const accountAbility account_distributedAccount.getDistributedAccountAbility();DistributedAccountAbility 提供查询和更新分布式帐号登录状态方法(需要先获取分布式帐号的单实例对象)。 queryOsAccountDistributedInfo queryOsAccountDistributedInfo(callback: AsyncCallback): void 获取分布式帐号信息使用callback回调异步返回结果。 系统能力 SystemCapability.Account.OsAccount 需要权限 ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC该权限仅供系统应用使用。 参数 | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | – | ------------- | | callback | AsyncCallback[DistributedInfo] | 是 | 获取分布式帐号信息的回调。 | 示例 const accountAbility account_distributedAccount.getDistributedAccountAbility(); accountAbility.queryOsAccountDistributedInfo((err, data) { console.log(queryOsAccountDistributedInfo err: JSON.stringify(err));console.log(Query account info name: data.name);console.log(Query account info id: data.id); });queryOsAccountDistributedInfo queryOsAccountDistributedInfo(): Promise 获取分布式帐号信息使用Promise方式异步返回结果。 系统能力 SystemCapability.Account.OsAccount 需要权限 ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC该权限仅供系统应用使用。 返回值 | 类型 | 说明 | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | | Promise[DistributedInfo] | Promise实例用于获取异步返回结果。 | 示例 const accountAbility account_distributedAccount.getDistributedAccountAbility(); accountAbility.queryOsAccountDistributedInfo().then((data) { console.log(Query account info name: data.name);console.log(Query account info id: data.id); }).catch((err) {console.log(queryOsAccountDistributedInfoerr: JSON.stringify(err)); });updateOsAccountDistributedInfo updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback): void 更新分布式帐号信息使用callback回调异步返回结果。 系统能力 SystemCapability.Account.OsAccount 需要权限 ohos.permission.MANAGE_LOCAL_ACCOUNTS该权限仅供系统应用使用。 参数 | 参数名 | 类型 | 必填 | 说明 | | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | – | ------------- | | accountInfo | [DistributedInfo]| 是 | 分布式帐号信息。 | | callback | AsyncCallback | 是 | 更新分布式帐号信息的回调。 | 示例 const accountAbility account_distributedAccount.getDistributedAccountAbility(); let accountInfo {id: 12345, name: ZhangSan, event: Ohos.account.event.LOGIN}; accountAbility.updateOsAccountDistributedInfo(accountInfo, (err) { console.log(queryOsAccountDistributedInfo err: JSON.stringify(err)); });updateOsAccountDistributedInfo updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise 更新分布式帐号信息使用Promise方式异步返回结果。 系统能力 SystemCapability.Account.OsAccount 需要权限 ohos.permission.MANAGE_LOCAL_ACCOUNTS该权限仅供系统应用使用。 参数 | 参数名 | 类型 | 必填 | 说明 | | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | – | -------- | | accountInfo | [DistributedInfo] | 是 | 分布式帐户信息。 | 返回值 | 类型 | 说明 | | ------------- | --------------------- | | Promise | Promise实例用于获取异步返回结果。 | 示例 const accountAbility account_distributedAccount.getDistributedAccountAbility(); let accountInfo {id: 12345, name: ZhangSan, event: Ohos.account.event.LOGIN}; accountAbility.updateOsAccountDistributedInfo(accountInfo).then(() {console.log(updateOsAccountDistributedInfo Success);}).catch((err) {console.log(updateOsAccountDistributedInfo err: JSON.stringify(err)); });DistributedInfo 提供操作系统帐户的分布式信息。 系统能力 SystemCapability.Account.OsAccount 参数名类型必填说明namestring是分布式帐号名称非空字符串。idstring是分布式帐号UID非空字符串。eventstring是分布式帐号登录状态包括登录、登出、Token失效和注销分别对应以下字符串 - Ohos.account.event.LOGIN - Ohos.account.event.LOGOUT - Ohos.account.event.TOKEN_INVALID - Ohos.account.event.LOGOFFscalableDataobject否分布式帐号扩展信息根据业务所需以k-v形式传递定制化信息。 说明该参数是预留的可选项目前查询和更新的方法实现中未使用。
http://www.hkea.cn/news/14423353/

相关文章:

  • 烟台网站建设 58一键建站源码
  • 济南做网站哪家好图文广告设计
  • 电子商务网站开发环境示范pc三合一网站
  • 郑州网站建设 推广淘宝客导购网站 丢单
  • 网站未备案被阻断怎么做红色文创产品设计
  • seo加盟代理医疗网站如何做优化
  • 郑州市二七区建设局网站建站哪个网站比较好
  • 红木家具网站模板比较好的app创意想法
  • 南昌网站建设哪家强广州软件开发定制
  • 欧美一级A做爰片成电影网站网站建设公司的服务定位
  • dnf交易网站建设传奇手游代理平台
  • 牡丹江建设行业协会网站南京网站开发价格
  • 网站建设空间域名是什么意思阿里巴巴网站建设分析
  • 淮北矿业 集团 工程建设有限责任公司网站深圳有做网站最近价格?
  • 网站seo关键词设置深圳网站制作建设公司推荐
  • 网页制作软件dw山西建站优化
  • 网站建设需求文档模板下载济南的网站建设公司
  • 做淘宝网站的安卓下载
  • 中国行业网站大全新浪短网址
  • 企业网站备案 优帮云装修设计合同范本
  • 上海公司建立网站吗学做网站开发吗
  • 网站根目录在哪wordpress视频转链接在线生成
  • 怎么做查询网站吗有什么网络项目可以做的
  • 营销型网站单页面自己怎做网站后台
  • 网站建设 自查表网站大致内容
  • 北京网站运营优化公司dede和wordpress
  • 学校网站后台管理源码网站建设经费
  • 怎么用pf做网站wordpress 全站 下载
  • 做销售的网站上杭建设局网站
  • 做外贸网站效果图上海高风险区域最新