js: Add more API and README
This commit is contained in:
10
js/index.js
10
js/index.js
@@ -3,7 +3,7 @@ function getUniqueCallbackName() {
|
||||
return `_callback_${Date.now()}_${callbackCounter++}`;
|
||||
}
|
||||
|
||||
function exec(command, options) {
|
||||
export function exec(command, options) {
|
||||
if (typeof options === "undefined") {
|
||||
options = {};
|
||||
}
|
||||
@@ -46,3 +46,11 @@ function exec(command, options) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function fullScreen(isFullScreen) {
|
||||
ksu.fullScreen(isFullScreen);
|
||||
}
|
||||
|
||||
export function toast(message) {
|
||||
ksu.toast(message);
|
||||
}
|
||||
Reference in New Issue
Block a user