@hyext/types-ext-sdk-hy 3.14.2 → 3.14.3-beta.2
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.
- package/index.d.ts +14 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3013,6 +3013,10 @@ namespace device {
|
|
|
3013
3013
|
* 取消监听设备摇一摇事件
|
|
3014
3014
|
*/
|
|
3015
3015
|
function offDeviceShakeShake(): Promise<void>;
|
|
3016
|
+
/**
|
|
3017
|
+
* 获取折叠屏相关状态
|
|
3018
|
+
*/
|
|
3019
|
+
function getFoldInfo(): Promise<FoldInfoRsp>;
|
|
3016
3020
|
}
|
|
3017
3021
|
|
|
3018
3022
|
/**
|
|
@@ -3232,6 +3236,16 @@ type OnDeviceShakeShakeReq = {
|
|
|
3232
3236
|
callback: DeviceShakeCallback;
|
|
3233
3237
|
};
|
|
3234
3238
|
|
|
3239
|
+
/**
|
|
3240
|
+
* 折叠屏相关状态
|
|
3241
|
+
* @property isFoldScreen - 是否是折叠屏
|
|
3242
|
+
* @property isFoldedFlatState - 是否是折叠屏展开状态
|
|
3243
|
+
*/
|
|
3244
|
+
type FoldInfoRsp = {
|
|
3245
|
+
isFoldScreen: boolean;
|
|
3246
|
+
isFoldedFlatState: boolean;
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3235
3249
|
/**
|
|
3236
3250
|
* 逐步废弃
|
|
3237
3251
|
*/
|