This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/native/statusbar.js

19 lines
636 B
JavaScript
Raw Normal View History

2020-01-14 10:59:42 +08:00
export var StatusBarMode;
(function (StatusBarMode) {
StatusBarMode[StatusBarMode["LIGHT"] = 0] = "LIGHT";
StatusBarMode[StatusBarMode["DARK"] = 1] = "DARK";
})(StatusBarMode || (StatusBarMode = {}));
export function statusbar(context) {
return {
setHidden: (hidden) => {
return context.callNative('statusbar', 'setHidden', { hidden });
2020-01-14 10:59:42 +08:00
},
setMode: (mode) => {
return context.callNative('statusbar', 'setMode', { mode });
2020-01-14 10:59:42 +08:00
},
setColor: (color) => {
return context.callNative('statusbar', 'setColor', { color: color.toModel() });
2020-01-14 10:59:42 +08:00
},
};
}