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
585 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.statusbar.setHidden({ hidden });
},
setMode: (mode) => {
return context.statusbar.setMode({ mode });
},
setColor: (color) => {
return context.statusbar.setColor({ color: color.toModel() });
},
};
}