@capacitor/status-bar
Version:
The StatusBar API Provides methods for configuring the style of the Status Bar, along with showing or hiding it.
70 lines (65 loc) • 1.65 kB
JavaScript
;
var core = require('@capacitor/core');
/// <reference types="@capacitor/cli" />
exports.Style = void 0;
(function (Style) {
/**
* Light text for dark backgrounds.
*
* @since 1.0.0
*/
Style["Dark"] = "DARK";
/**
* Dark text for light backgrounds.
*
* @since 1.0.0
*/
Style["Light"] = "LIGHT";
/**
* The style is based on the device appearance.
* If the device is using Dark mode, the statusbar text will be light.
* If the device is using Light mode, the statusbar text will be dark.
*
* @since 1.0.0
*/
Style["Default"] = "DEFAULT";
})(exports.Style || (exports.Style = {}));
exports.Animation = void 0;
(function (Animation) {
/**
* No animation during show/hide.
*
* @since 1.0.0
*/
Animation["None"] = "NONE";
/**
* Slide animation during show/hide.
* It doesn't work on iOS 15+.
*
* @deprecated Use Animation.Fade or Animation.None instead.
*
* @since 1.0.0
*/
Animation["Slide"] = "SLIDE";
/**
* Fade animation during show/hide.
*
* @since 1.0.0
*/
Animation["Fade"] = "FADE";
})(exports.Animation || (exports.Animation = {}));
/**
* @deprecated Use `Animation`.
* @since 1.0.0
*/
const StatusBarAnimation = exports.Animation;
/**
* @deprecated Use `Style`.
* @since 1.0.0
*/
const StatusBarStyle = exports.Style;
const StatusBar = core.registerPlugin('StatusBar');
exports.StatusBar = StatusBar;
exports.StatusBarAnimation = StatusBarAnimation;
exports.StatusBarStyle = StatusBarStyle;
//# sourceMappingURL=plugin.cjs.js.map