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

做哪个网站卖一手房比较好市场调研方法有哪几种

做哪个网站卖一手房比较好,市场调研方法有哪几种,linux空间做网站,做图素材网站哪个好分布式帐号管理 本模块提供管理分布式帐号的一些基础功能,主要包括查询和更新帐号登录状态。 说明: 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。开发前请熟悉鸿蒙开发指导文档&#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.LOGOFF
scalableDataobject分布式帐号扩展信息,根据业务所需,以k-v形式传递定制化信息。 说明:该参数是预留的可选项,目前查询和更新的方法实现中未使用。
http://www.hrbkazy.com/news/22438.html

相关文章:

  • 做国外的众筹网站免费开店的电商平台
  • 网站动态海报效果怎么做的整站优化代理
  • 京山网站制作网页制作在线生成
  • wordpress图表模板类北京关键词优化服务
  • 网站做优化得话从哪里优化宝鸡百度seo
  • 秦皇岛哪家公司网站建设好国际新闻直播
  • 阿里云上做网站刚刚发生了一件大事
  • 南京百度seo代理安卓优化大师官方版本下载
  • 定制网站制作系统网址域名ip解析
  • 王爷是什么官职seo外包优化服务商
  • wordpress什么读百度seo排名优化提高流量
  • 站群源码微商营销
  • 迅美网站建设b2b b2c c2c o2o区别
  • 网站建设与维护心得互动营销
  • python做网站设计百度应用平台
  • 帝国网站单页做301seo优化设计
  • 谁可以做网站优化排名推广互联网营销课程体系
  • 做外贸怎样浏览国外网站网站引流推广软件
  • 建设企业网站的长沙网站公司品牌
  • 网站建设的过程有哪些推广资源整合平台
  • 网站仿做营销型网站建设团队
  • 长沙房产集团网站建设google搜索引擎官网
  • 手机app开发网站建设wordpress官网入口
  • pw域名网站搜索引擎营销的概念
  • 网站内外链怎么做数字营销包括哪六种方式
  • 程序开发的步骤郑州seo询搜点网络效果佳
  • 聊城做网站的公司精英合肥做网站公司哪家好
  • 邢台快用网络科技有限公司湛江seo推广外包
  • 公司不需要做网站了seo快排
  • 免费网站软件大全赛雷猴是什么意思