@ray-js/api 1.7.80 → 1.7.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,25 @@
1
1
  /**
2
2
  * LightKit
3
3
  *
4
- * @version 1.0.17
4
+ * @version 1.0.19
5
5
  */
6
6
  declare namespace ty.light {
7
7
  /**
8
- * 蓝牙设备是否支持手机直连开关状态切换
8
+ * 设置蓝牙设备是否支持手机直连开关状态切换,传入 true 表示开启支持,false 表示关闭支持。
9
9
  * @public
10
10
  * @since LightKit 1.0.0
11
+ * @example Demo
12
+ * ```tsx
13
+ * ty.light.onLocalMeshSupportSwitchChanged({
14
+ * isChecked: false,
15
+ * success: data => {
16
+ * console.log(data);
17
+ * },
18
+ * fail: error => {
19
+ * console.error(error);
20
+ * },
21
+ * });
22
+ * ```
11
23
  * @platform iOS Android
12
24
  */
13
25
  export function onLocalMeshSupportSwitchChanged(params: {
@@ -40,6 +52,17 @@ declare namespace ty.light {
40
52
  * 获取当前蓝牙设备是否支持手机直连开关状态
41
53
  * @public
42
54
  * @since LightKit 1.0.0
55
+ * @example Demo
56
+ * ```tsx
57
+ * ty.light.getLocalMeshSupportSwitchStatus({
58
+ * success: data => {
59
+ * console.log(data);
60
+ * },
61
+ * fail: error => {
62
+ * console.error(error);
63
+ * },
64
+ * });
65
+ * ```
43
66
  * @platform iOS Android
44
67
  */
45
68
  export function getLocalMeshSupportSwitchStatus(params?: {
@@ -67,6 +90,19 @@ declare namespace ty.light {
67
90
  * 跳转群组管理页面
68
91
  * @public
69
92
  * @since LightKit 1.0.12
93
+ * @example Demo
94
+ * ```tsx
95
+ * ty.light.gotoLightGroupManagePage({
96
+ * entityId: "xx",
97
+ * roomId: 1,
98
+ * success: data => {
99
+ * console.log(data);
100
+ * },
101
+ * fail: error => {
102
+ * console.error(error);
103
+ * },
104
+ * });
105
+ * ```
70
106
  * @platform iOS Android
71
107
  */
72
108
  export function gotoLightGroupManagePage(params: {