ms-types 0.0.87 → 0.1.1
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/package.json
CHANGED
package/types/hid.d.ts
CHANGED
|
@@ -246,6 +246,12 @@ declare namespace hid {
|
|
|
246
246
|
*/
|
|
247
247
|
function openApp(name: string): boolean;
|
|
248
248
|
|
|
249
|
+
/**
|
|
250
|
+
* 切换到前台
|
|
251
|
+
* @returns 操作是否成功
|
|
252
|
+
*/
|
|
253
|
+
function takeMeToFront(): boolean;
|
|
254
|
+
|
|
249
255
|
/**
|
|
250
256
|
* 获取当前打开应用信息(仅 IOS18+)
|
|
251
257
|
* @returns 当前打开应用信息
|
|
@@ -260,4 +266,17 @@ declare namespace hid {
|
|
|
260
266
|
*/
|
|
261
267
|
bundleId: string;
|
|
262
268
|
} | null;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* 设置剪切板内容
|
|
272
|
+
* @param text 要设置的文本
|
|
273
|
+
* @returns 设置结果
|
|
274
|
+
*/
|
|
275
|
+
function setClipboard(text: string): boolean;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* 获取剪切板内容
|
|
279
|
+
* @returns 剪切板内容
|
|
280
|
+
*/
|
|
281
|
+
function getClipboard(): string | null;
|
|
263
282
|
}
|
|
@@ -250,6 +250,12 @@ declare namespace $HID {
|
|
|
250
250
|
*/
|
|
251
251
|
function 打开App(name: 字符串): 布尔值;
|
|
252
252
|
|
|
253
|
+
/**
|
|
254
|
+
* 切换到前台
|
|
255
|
+
* @returns 操作是否成功
|
|
256
|
+
*/
|
|
257
|
+
function APP切入前台(): 布尔值;
|
|
258
|
+
|
|
253
259
|
/**
|
|
254
260
|
* 获取当前打开应用信息(仅 IOS18+)
|
|
255
261
|
* @returns 当前打开应用信息
|
|
@@ -264,4 +270,17 @@ declare namespace $HID {
|
|
|
264
270
|
*/
|
|
265
271
|
bundleId: 字符串;
|
|
266
272
|
} | null;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* 设置剪切板内容
|
|
276
|
+
* @param text 要设置的文本
|
|
277
|
+
* @returns 设置结果
|
|
278
|
+
*/
|
|
279
|
+
function 设置剪切板内容(text: 字符串): 布尔值;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* 获取剪切板内容
|
|
283
|
+
* @returns 剪切板内容
|
|
284
|
+
*/
|
|
285
|
+
function 获取剪切板内容(): 字符串 | null;
|
|
267
286
|
}
|