MiniX自绘渲染跨平台框架
  • 框架说明
  • 声明式开发范式
  • 内置Api
指南
接口
  • Minix CLI
示例
  • 类Web框架

    • 框架说明
    • 类Web开发范式
    • 内置Api
  • 指南
  • 组件
  • 接口
  • 示例
  • 规范
  • DophinHybrid

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • DolphinWeex

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • 发布消息
  • 常见问题
  • 更新日志
  • 框架说明
  • 声明式开发范式
  • 内置Api
指南
接口
  • Minix CLI
示例
  • 类Web框架

    • 框架说明
    • 类Web开发范式
    • 内置Api
  • 指南
  • 组件
  • 接口
  • 示例
  • 规范
  • DophinHybrid

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • DolphinWeex

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • 发布消息
  • 常见问题
  • 更新日志
  • 快速上手
  • Basic 基础

  • Account

  • UI 界面

  • Device 设备

  • Bluetooth 蓝牙

  • Wifi WiFi

  • HomeManage 家庭管理

    • getHomeInfo 获取家庭信息及其设备列表
    • getAllHomeInfoList 获取所有的家庭信息(不包含设备信息)
      • createHome 创建家庭
      • deleteHome 删除家庭
      • getHomeMemberList 获取家庭成员列表
      • inviteToHome 邀请家庭成员
      • refreshHomeInfo 刷新家庭信息
    • RoomManage 房间管理

    • Media 媒体

    • Location 定位

    • Encryption 加/解密

    • FileStorage 文件/存储

    • Http 网络/请求

    • weather 天气信息

    • Siri

    • TelPhone

    请扫码查看示例

    # getAllHomeInfoList ^7.9

    获取所有的家庭信息(不包含设备信息)

    # 请求参数

    N/A

    # 引入接口模块

    import bridge from '@minix-iot/etsbridge-sdk'
    
    1

    # 接口调用示例

    bridge
      .getAllHomeInfoList()
      .then((res) => {
        console.log(res)
      })
      .catch((err) => {
        console.log(err)
      })
    
    1
    2
    3
    4
    5
    6
    7
    8

    # 接口返回示例

    {
        "homeList": [
            {
                "address": "广东省 深圳市 南山区",
                "applianceCount": "0",
                "areaid": "101280604",
                "coordinate": "113.942413,22.530003",
                "createTime": "2021-05-27 18:56:01",
                "createUserUid": "971b70aba301ce71056e1053ae48eca7",
                "des": "",
                "homegroupId": "1156715",
                "isDefault": "0",
                "memberCount": "2",
                "name": "家庭组件化测试",
                "nickname": "家庭组件化测试",
                "number": "1156715",
                "profilePicUrl": "",
                "roleId": "1002",
                "roomCount": "23"
            }
        ]
    }
    
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24