@capacitor/status-bar 8.0.1 → 8.0.2-dev-2498-20260318T122043.0

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/README.md CHANGED
@@ -127,7 +127,10 @@ export default config;
127
127
  * [`hide(...)`](#hide)
128
128
  * [`getInfo()`](#getinfo)
129
129
  * [`setOverlaysWebView(...)`](#setoverlayswebview)
130
+ * [`addListener('statusBarVisibilityChanged', ...)`](#addlistenerstatusbarvisibilitychanged-)
131
+ * [`addListener('statusBarOverlayChanged', ...)`](#addlistenerstatusbaroverlaychanged-)
130
132
  * [Interfaces](#interfaces)
133
+ * [Type Aliases](#type-aliases)
131
134
  * [Enums](#enums)
132
135
 
133
136
  </docgen-index>
@@ -243,6 +246,48 @@ Not available on Android 15+.
243
246
  --------------------
244
247
 
245
248
 
249
+ ### addListener('statusBarVisibilityChanged', ...)
250
+
251
+ ```typescript
252
+ addListener(eventName: 'statusBarVisibilityChanged', listenerFunc: VisibilityChangeListener) => Promise<PluginListenerHandle>
253
+ ```
254
+
255
+ Listen for status bar visibility changes.
256
+ Fired when hide or show methods get called.
257
+
258
+ | Param | Type |
259
+ | ------------------ | ----------------------------------------------------------------------------- |
260
+ | **`eventName`** | <code>'statusBarVisibilityChanged'</code> |
261
+ | **`listenerFunc`** | <code><a href="#visibilitychangelistener">VisibilityChangeListener</a></code> |
262
+
263
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
264
+
265
+ **Since:** 7.0.0
266
+
267
+ --------------------
268
+
269
+
270
+ ### addListener('statusBarOverlayChanged', ...)
271
+
272
+ ```typescript
273
+ addListener(eventName: 'statusBarOverlayChanged', listenerFunc: OverlayChangeListener) => Promise<PluginListenerHandle>
274
+ ```
275
+
276
+ Listen for status bar overlay changes.
277
+ Fired when setOverlaysWebView gets called.
278
+
279
+ | Param | Type |
280
+ | ------------------ | ----------------------------------------------------------------------- |
281
+ | **`eventName`** | <code>'statusBarOverlayChanged'</code> |
282
+ | **`listenerFunc`** | <code><a href="#overlaychangelistener">OverlayChangeListener</a></code> |
283
+
284
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
285
+
286
+ **Since:** 7.0.0
287
+
288
+ --------------------
289
+
290
+
246
291
  ### Interfaces
247
292
 
248
293
 
@@ -269,12 +314,13 @@ Not available on Android 15+.
269
314
 
270
315
  #### StatusBarInfo
271
316
 
272
- | Prop | Type | Description | Since |
273
- | -------------- | --------------------------------------- | ----------------------------------------- | ----- |
274
- | **`visible`** | <code>boolean</code> | Whether the status bar is visible or not. | 1.0.0 |
275
- | **`style`** | <code><a href="#style">Style</a></code> | The current status bar style. | 1.0.0 |
276
- | **`color`** | <code>string</code> | The current status bar color. | 1.0.0 |
277
- | **`overlays`** | <code>boolean</code> | Whether the statusbar is overlaid or not. | 1.0.0 |
317
+ | Prop | Type | Description | Since |
318
+ | -------------- | --------------------------------------- | ------------------------------------------ | ----- |
319
+ | **`visible`** | <code>boolean</code> | Whether the status bar is visible or not. | 1.0.0 |
320
+ | **`style`** | <code><a href="#style">Style</a></code> | The current status bar style. | 1.0.0 |
321
+ | **`color`** | <code>string</code> | The current status bar color. | 1.0.0 |
322
+ | **`overlays`** | <code>boolean</code> | Whether the status bar is overlaid or not. | 1.0.0 |
323
+ | **`height`** | <code>number</code> | The height of the status bar. | 7.0.0 |
278
324
 
279
325
 
280
326
  #### SetOverlaysWebViewOptions
@@ -284,6 +330,26 @@ Not available on Android 15+.
284
330
  | **`overlay`** | <code>boolean</code> | Whether to overlay the status bar or not. | 1.0.0 |
285
331
 
286
332
 
333
+ #### PluginListenerHandle
334
+
335
+ | Prop | Type |
336
+ | ------------ | ----------------------------------------- |
337
+ | **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |
338
+
339
+
340
+ ### Type Aliases
341
+
342
+
343
+ #### VisibilityChangeListener
344
+
345
+ <code>(info: <a href="#statusbarinfo">StatusBarInfo</a>): void</code>
346
+
347
+
348
+ #### OverlayChangeListener
349
+
350
+ <code>(info: <a href="#statusbarinfo">StatusBarInfo</a>): void</code>
351
+
352
+
287
353
  ### Enums
288
354
 
289
355
 
package/dist/docs.json CHANGED
@@ -136,6 +136,64 @@
136
136
  "SetOverlaysWebViewOptions"
137
137
  ],
138
138
  "slug": "setoverlayswebview"
139
+ },
140
+ {
141
+ "name": "addListener",
142
+ "signature": "(eventName: 'statusBarVisibilityChanged', listenerFunc: VisibilityChangeListener) => Promise<PluginListenerHandle>",
143
+ "parameters": [
144
+ {
145
+ "name": "eventName",
146
+ "docs": "",
147
+ "type": "'statusBarVisibilityChanged'"
148
+ },
149
+ {
150
+ "name": "listenerFunc",
151
+ "docs": "",
152
+ "type": "VisibilityChangeListener"
153
+ }
154
+ ],
155
+ "returns": "Promise<PluginListenerHandle>",
156
+ "tags": [
157
+ {
158
+ "name": "since",
159
+ "text": "7.0.0"
160
+ }
161
+ ],
162
+ "docs": "Listen for status bar visibility changes.\nFired when hide or show methods get called.",
163
+ "complexTypes": [
164
+ "PluginListenerHandle",
165
+ "VisibilityChangeListener"
166
+ ],
167
+ "slug": "addlistenerstatusbarvisibilitychanged-"
168
+ },
169
+ {
170
+ "name": "addListener",
171
+ "signature": "(eventName: 'statusBarOverlayChanged', listenerFunc: OverlayChangeListener) => Promise<PluginListenerHandle>",
172
+ "parameters": [
173
+ {
174
+ "name": "eventName",
175
+ "docs": "",
176
+ "type": "'statusBarOverlayChanged'"
177
+ },
178
+ {
179
+ "name": "listenerFunc",
180
+ "docs": "",
181
+ "type": "OverlayChangeListener"
182
+ }
183
+ ],
184
+ "returns": "Promise<PluginListenerHandle>",
185
+ "tags": [
186
+ {
187
+ "name": "since",
188
+ "text": "7.0.0"
189
+ }
190
+ ],
191
+ "docs": "Listen for status bar overlay changes.\nFired when setOverlaysWebView gets called.",
192
+ "complexTypes": [
193
+ "PluginListenerHandle",
194
+ "OverlayChangeListener"
195
+ ],
196
+ "slug": "addlistenerstatusbaroverlaychanged-"
139
197
  }
140
198
  ],
141
199
  "properties": []
@@ -255,7 +313,7 @@
255
313
  ],
256
314
  "docs": "The current status bar color.",
257
315
  "complexTypes": [],
258
- "type": "string | undefined"
316
+ "type": "string"
259
317
  },
260
318
  {
261
319
  "name": "overlays",
@@ -265,9 +323,21 @@
265
323
  "name": "since"
266
324
  }
267
325
  ],
268
- "docs": "Whether the statusbar is overlaid or not.",
326
+ "docs": "Whether the status bar is overlaid or not.",
269
327
  "complexTypes": [],
270
- "type": "boolean | undefined"
328
+ "type": "boolean"
329
+ },
330
+ {
331
+ "name": "height",
332
+ "tags": [
333
+ {
334
+ "text": "7.0.0",
335
+ "name": "since"
336
+ }
337
+ ],
338
+ "docs": "The height of the status bar.",
339
+ "complexTypes": [],
340
+ "type": "number"
271
341
  }
272
342
  ]
273
343
  },
@@ -291,6 +361,22 @@
291
361
  "type": "boolean"
292
362
  }
293
363
  ]
364
+ },
365
+ {
366
+ "name": "PluginListenerHandle",
367
+ "slug": "pluginlistenerhandle",
368
+ "docs": "",
369
+ "tags": [],
370
+ "methods": [],
371
+ "properties": [
372
+ {
373
+ "name": "remove",
374
+ "tags": [],
375
+ "docs": "",
376
+ "complexTypes": [],
377
+ "type": "() => Promise<void>"
378
+ }
379
+ ]
294
380
  }
295
381
  ],
296
382
  "enums": [
@@ -377,7 +463,34 @@
377
463
  ]
378
464
  }
379
465
  ],
380
- "typeAliases": [],
466
+ "typeAliases": [
467
+ {
468
+ "name": "VisibilityChangeListener",
469
+ "slug": "visibilitychangelistener",
470
+ "docs": "",
471
+ "types": [
472
+ {
473
+ "text": "(info: StatusBarInfo): void",
474
+ "complexTypes": [
475
+ "StatusBarInfo"
476
+ ]
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "name": "OverlayChangeListener",
482
+ "slug": "overlaychangelistener",
483
+ "docs": "",
484
+ "types": [
485
+ {
486
+ "text": "(info: StatusBarInfo): void",
487
+ "complexTypes": [
488
+ "StatusBarInfo"
489
+ ]
490
+ }
491
+ ]
492
+ }
493
+ ],
381
494
  "pluginConfigs": [
382
495
  {
383
496
  "name": "StatusBar",
@@ -1,3 +1,4 @@
1
+ import type { PluginListenerHandle } from '@capacitor/core';
1
2
  declare module '@capacitor/cli' {
2
3
  interface PluginsConfig {
3
4
  /**
@@ -125,13 +126,19 @@ export interface StatusBarInfo {
125
126
  *
126
127
  * @since 1.0.0
127
128
  */
128
- color?: string;
129
+ color: string;
129
130
  /**
130
- * Whether the statusbar is overlaid or not.
131
+ * Whether the status bar is overlaid or not.
131
132
  *
132
133
  * @since 1.0.0
133
134
  */
134
- overlays?: boolean;
135
+ overlays: boolean;
136
+ /**
137
+ * The height of the status bar.
138
+ *
139
+ * @since 7.0.0
140
+ */
141
+ height: number;
135
142
  }
136
143
  export interface SetOverlaysWebViewOptions {
137
144
  /**
@@ -141,6 +148,8 @@ export interface SetOverlaysWebViewOptions {
141
148
  */
142
149
  overlay: boolean;
143
150
  }
151
+ export type VisibilityChangeListener = (info: StatusBarInfo) => void;
152
+ export type OverlayChangeListener = (info: StatusBarInfo) => void;
144
153
  export interface StatusBarPlugin {
145
154
  /**
146
155
  * Set the current style of the status bar.
@@ -186,6 +195,20 @@ export interface StatusBarPlugin {
186
195
  * @since 1.0.0
187
196
  */
188
197
  setOverlaysWebView(options: SetOverlaysWebViewOptions): Promise<void>;
198
+ /**
199
+ * Listen for status bar visibility changes.
200
+ * Fired when hide or show methods get called.
201
+ *
202
+ * @since 7.0.0
203
+ */
204
+ addListener(eventName: 'statusBarVisibilityChanged', listenerFunc: VisibilityChangeListener): Promise<PluginListenerHandle>;
205
+ /**
206
+ * Listen for status bar overlay changes.
207
+ * Fired when setOverlaysWebView gets called.
208
+ *
209
+ * @since 7.0.0
210
+ */
211
+ addListener(eventName: 'statusBarOverlayChanged', listenerFunc: OverlayChangeListener): Promise<PluginListenerHandle>;
189
212
  }
190
213
  /**
191
214
  * @deprecated Use `StyleOptions`.
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,wCAAwC;AAkDxC,MAAM,CAAN,IAAY,KAuBX;AAvBD,WAAY,KAAK;IACf;;;;OAIG;IACH,sBAAa,CAAA;IAEb;;;;OAIG;IACH,wBAAe,CAAA;IAEf;;;;;;OAMG;IACH,4BAAmB,CAAA;AACrB,CAAC,EAvBW,KAAK,KAAL,KAAK,QAuBhB;AAeD,MAAM,CAAN,IAAY,SAwBX;AAxBD,WAAY,SAAS;IACnB;;;;OAIG;IACH,0BAAa,CAAA;IAEb;;;;;;;OAOG;IACH,4BAAe,CAAA;IAEf;;;;OAIG;IACH,0BAAa,CAAA;AACf,CAAC,EAxBW,SAAS,KAAT,SAAS,QAwBpB;AAoID;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC","sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n\ndeclare module '@capacitor/cli' {\n export interface PluginsConfig {\n /**\n * These config values are available:\n */\n StatusBar?: {\n /**\n * Whether the statusbar is overlaid or not.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n * @default true\n * @example false\n */\n overlaysWebView?: boolean;\n\n /**\n * Style of the text of the status bar.\n *\n * @since 1.0.0\n * @default default\n * @example \"DARK\"\n */\n style?: string;\n\n /**\n * Color of the background of the statusbar in hex format, #RRGGBB.\n * Doesn't work if `overlaysWebView` is true.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n * @default #000000\n * @example \"#ffffffff\"\n */\n backgroundColor?: string;\n };\n }\n}\n\nexport interface StyleOptions {\n /**\n * Style of the text of the status bar.\n *\n * @since 1.0.0\n */\n style: Style;\n}\n\nexport enum Style {\n /**\n * Light text for dark backgrounds.\n *\n * @since 1.0.0\n */\n Dark = 'DARK',\n\n /**\n * Dark text for light backgrounds.\n *\n * @since 1.0.0\n */\n Light = 'LIGHT',\n\n /**\n * The style is based on the device appearance.\n * If the device is using Dark mode, the statusbar text will be light.\n * If the device is using Light mode, the statusbar text will be dark.\n *\n * @since 1.0.0\n */\n Default = 'DEFAULT',\n}\n\nexport interface AnimationOptions {\n /**\n * The type of status bar animation used when showing or hiding.\n *\n * This option is only supported on iOS.\n *\n * @default Animation.Fade\n *\n * @since 1.0.0\n */\n animation: Animation;\n}\n\nexport enum Animation {\n /**\n * No animation during show/hide.\n *\n * @since 1.0.0\n */\n None = 'NONE',\n\n /**\n * Slide animation during show/hide.\n * It doesn't work on iOS 15+.\n *\n * @deprecated Use Animation.Fade or Animation.None instead.\n *\n * @since 1.0.0\n */\n Slide = 'SLIDE',\n\n /**\n * Fade animation during show/hide.\n *\n * @since 1.0.0\n */\n Fade = 'FADE',\n}\n\nexport interface BackgroundColorOptions {\n /**\n * A hex color to which the status bar color is set.\n *\n * @since 1.0.0\n */\n color: string;\n}\n\nexport interface StatusBarInfo {\n /**\n * Whether the status bar is visible or not.\n *\n * @since 1.0.0\n */\n visible: boolean;\n\n /**\n * The current status bar style.\n *\n * @since 1.0.0\n */\n style: Style;\n\n /**\n * The current status bar color.\n *\n * @since 1.0.0\n */\n color?: string;\n\n /**\n * Whether the statusbar is overlaid or not.\n *\n * @since 1.0.0\n */\n overlays?: boolean;\n}\n\nexport interface SetOverlaysWebViewOptions {\n /**\n * Whether to overlay the status bar or not.\n *\n * @since 1.0.0\n */\n overlay: boolean;\n}\n\nexport interface StatusBarPlugin {\n /**\n * Set the current style of the status bar.\n *\n * @since 1.0.0\n */\n setStyle(options: StyleOptions): Promise<void>;\n\n /**\n * Set the background color of the status bar.\n * Calling this function updates the foreground color of the status bar if the style is set to default, except on iOS versions lower than 17.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n */\n setBackgroundColor(options: BackgroundColorOptions): Promise<void>;\n\n /**\n * Show the status bar.\n * On iOS, if the status bar is initially hidden and the initial style is set to\n * `UIStatusBarStyleLightContent`, first show call might present a glitch on the\n * animation showing the text as dark and then transition to light. It's recommended\n * to use `Animation.None` as the animation on the first call.\n *\n * @since 1.0.0\n */\n show(options?: AnimationOptions): Promise<void>;\n\n /**\n * Hide the status bar.\n *\n * @since 1.0.0\n */\n hide(options?: AnimationOptions): Promise<void>;\n\n /**\n * Get info about the current state of the status bar.\n *\n * @since 1.0.0\n */\n getInfo(): Promise<StatusBarInfo>;\n\n /**\n * Set whether or not the status bar should overlay the webview to allow usage\n * of the space underneath it.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n */\n setOverlaysWebView(options: SetOverlaysWebViewOptions): Promise<void>;\n}\n\n/**\n * @deprecated Use `StyleOptions`.\n * @since 1.0.0\n */\nexport type StatusBarStyleOptions = StyleOptions;\n\n/**\n * @deprecated Use `BackgroundColorOptions`.\n * @since 1.0.0\n */\nexport type StatusBarBackgroundColorOptions = BackgroundColorOptions;\n\n/**\n * @deprecated Use `SetOverlaysWebViewOptions`.\n * @since 1.0.0\n */\nexport type StatusBarOverlaysWebviewOptions = SetOverlaysWebViewOptions;\n\n/**\n * @deprecated Use `StatusBarInfo`.\n * @since 1.0.0\n */\nexport type StatusBarInfoResult = StatusBarInfo;\n\n/**\n * @deprecated Use `AnimationOptions`.\n * @since 1.0.0\n */\nexport type StatusBarAnimationOptions = AnimationOptions;\n\n/**\n * @deprecated Use `Animation`.\n * @since 1.0.0\n */\nexport const StatusBarAnimation = Animation;\n\n/**\n * @deprecated Use `Style`.\n * @since 1.0.0\n */\nexport const StatusBarStyle = Style;\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,wCAAwC;AAoDxC,MAAM,CAAN,IAAY,KAuBX;AAvBD,WAAY,KAAK;IACf;;;;OAIG;IACH,sBAAa,CAAA;IAEb;;;;OAIG;IACH,wBAAe,CAAA;IAEf;;;;;;OAMG;IACH,4BAAmB,CAAA;AACrB,CAAC,EAvBW,KAAK,KAAL,KAAK,QAuBhB;AAeD,MAAM,CAAN,IAAY,SAwBX;AAxBD,WAAY,SAAS;IACnB;;;;OAIG;IACH,0BAAa,CAAA;IAEb;;;;;;;OAOG;IACH,4BAAe,CAAA;IAEf;;;;OAIG;IACH,0BAAa,CAAA;AACf,CAAC,EAxBW,SAAS,KAAT,SAAS,QAwBpB;AAiKD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC","sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n\nimport type { PluginListenerHandle } from '@capacitor/core';\n\ndeclare module '@capacitor/cli' {\n export interface PluginsConfig {\n /**\n * These config values are available:\n */\n StatusBar?: {\n /**\n * Whether the statusbar is overlaid or not.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n * @default true\n * @example false\n */\n overlaysWebView?: boolean;\n\n /**\n * Style of the text of the status bar.\n *\n * @since 1.0.0\n * @default default\n * @example \"DARK\"\n */\n style?: string;\n\n /**\n * Color of the background of the statusbar in hex format, #RRGGBB.\n * Doesn't work if `overlaysWebView` is true.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n * @default #000000\n * @example \"#ffffffff\"\n */\n backgroundColor?: string;\n };\n }\n}\n\nexport interface StyleOptions {\n /**\n * Style of the text of the status bar.\n *\n * @since 1.0.0\n */\n style: Style;\n}\n\nexport enum Style {\n /**\n * Light text for dark backgrounds.\n *\n * @since 1.0.0\n */\n Dark = 'DARK',\n\n /**\n * Dark text for light backgrounds.\n *\n * @since 1.0.0\n */\n Light = 'LIGHT',\n\n /**\n * The style is based on the device appearance.\n * If the device is using Dark mode, the statusbar text will be light.\n * If the device is using Light mode, the statusbar text will be dark.\n *\n * @since 1.0.0\n */\n Default = 'DEFAULT',\n}\n\nexport interface AnimationOptions {\n /**\n * The type of status bar animation used when showing or hiding.\n *\n * This option is only supported on iOS.\n *\n * @default Animation.Fade\n *\n * @since 1.0.0\n */\n animation: Animation;\n}\n\nexport enum Animation {\n /**\n * No animation during show/hide.\n *\n * @since 1.0.0\n */\n None = 'NONE',\n\n /**\n * Slide animation during show/hide.\n * It doesn't work on iOS 15+.\n *\n * @deprecated Use Animation.Fade or Animation.None instead.\n *\n * @since 1.0.0\n */\n Slide = 'SLIDE',\n\n /**\n * Fade animation during show/hide.\n *\n * @since 1.0.0\n */\n Fade = 'FADE',\n}\n\nexport interface BackgroundColorOptions {\n /**\n * A hex color to which the status bar color is set.\n *\n * @since 1.0.0\n */\n color: string;\n}\n\nexport interface StatusBarInfo {\n /**\n * Whether the status bar is visible or not.\n *\n * @since 1.0.0\n */\n visible: boolean;\n\n /**\n * The current status bar style.\n *\n * @since 1.0.0\n */\n style: Style;\n\n /**\n * The current status bar color.\n *\n * @since 1.0.0\n */\n color: string;\n\n /**\n * Whether the status bar is overlaid or not.\n *\n * @since 1.0.0\n */\n overlays: boolean;\n\n /**\n * The height of the status bar.\n *\n * @since 7.0.0\n */\n height: number;\n}\n\nexport interface SetOverlaysWebViewOptions {\n /**\n * Whether to overlay the status bar or not.\n *\n * @since 1.0.0\n */\n overlay: boolean;\n}\n\nexport type VisibilityChangeListener = (info: StatusBarInfo) => void;\nexport type OverlayChangeListener = (info: StatusBarInfo) => void;\n\nexport interface StatusBarPlugin {\n /**\n * Set the current style of the status bar.\n *\n * @since 1.0.0\n */\n setStyle(options: StyleOptions): Promise<void>;\n\n /**\n * Set the background color of the status bar.\n * Calling this function updates the foreground color of the status bar if the style is set to default, except on iOS versions lower than 17.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n */\n setBackgroundColor(options: BackgroundColorOptions): Promise<void>;\n\n /**\n * Show the status bar.\n * On iOS, if the status bar is initially hidden and the initial style is set to\n * `UIStatusBarStyleLightContent`, first show call might present a glitch on the\n * animation showing the text as dark and then transition to light. It's recommended\n * to use `Animation.None` as the animation on the first call.\n *\n * @since 1.0.0\n */\n show(options?: AnimationOptions): Promise<void>;\n\n /**\n * Hide the status bar.\n *\n * @since 1.0.0\n */\n hide(options?: AnimationOptions): Promise<void>;\n\n /**\n * Get info about the current state of the status bar.\n *\n * @since 1.0.0\n */\n getInfo(): Promise<StatusBarInfo>;\n\n /**\n * Set whether or not the status bar should overlay the webview to allow usage\n * of the space underneath it.\n * Not available on Android 15+.\n *\n * @since 1.0.0\n */\n setOverlaysWebView(options: SetOverlaysWebViewOptions): Promise<void>;\n\n /**\n * Listen for status bar visibility changes.\n * Fired when hide or show methods get called.\n *\n * @since 7.0.0\n */\n addListener(\n eventName: 'statusBarVisibilityChanged',\n listenerFunc: VisibilityChangeListener,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Listen for status bar overlay changes.\n * Fired when setOverlaysWebView gets called.\n *\n * @since 7.0.0\n */\n addListener(eventName: 'statusBarOverlayChanged', listenerFunc: OverlayChangeListener): Promise<PluginListenerHandle>;\n}\n\n/**\n * @deprecated Use `StyleOptions`.\n * @since 1.0.0\n */\nexport type StatusBarStyleOptions = StyleOptions;\n\n/**\n * @deprecated Use `BackgroundColorOptions`.\n * @since 1.0.0\n */\nexport type StatusBarBackgroundColorOptions = BackgroundColorOptions;\n\n/**\n * @deprecated Use `SetOverlaysWebViewOptions`.\n * @since 1.0.0\n */\nexport type StatusBarOverlaysWebviewOptions = SetOverlaysWebViewOptions;\n\n/**\n * @deprecated Use `StatusBarInfo`.\n * @since 1.0.0\n */\nexport type StatusBarInfoResult = StatusBarInfo;\n\n/**\n * @deprecated Use `AnimationOptions`.\n * @since 1.0.0\n */\nexport type StatusBarAnimationOptions = AnimationOptions;\n\n/**\n * @deprecated Use `Animation`.\n * @since 1.0.0\n */\nexport const StatusBarAnimation = Animation;\n\n/**\n * @deprecated Use `Style`.\n * @since 1.0.0\n */\nexport const StatusBarStyle = Style;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/status-bar",
3
- "version": "8.0.1",
3
+ "version": "8.0.2-dev-2498-20260318T122043.0",
4
4
  "description": "The StatusBar API Provides methods for configuring the style of the Status Bar, along with showing or hiding it.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -81,6 +81,5 @@
81
81
  },
82
82
  "publishConfig": {
83
83
  "access": "public"
84
- },
85
- "gitHead": "bf4fe8c9ace79237c048c9b5ee0ab7455042bc86"
84
+ }
86
85
  }