@capacitor/status-bar 7.0.4 → 7.0.6-dev-2500-20260319T084413.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
@@ -111,7 +111,10 @@ export default config;
111
111
  * [`hide(...)`](#hide)
112
112
  * [`getInfo()`](#getinfo)
113
113
  * [`setOverlaysWebView(...)`](#setoverlayswebview)
114
+ * [`addListener('statusBarVisibilityChanged', ...)`](#addlistenerstatusbarvisibilitychanged-)
115
+ * [`addListener('statusBarOverlayChanged', ...)`](#addlistenerstatusbaroverlaychanged-)
114
116
  * [Interfaces](#interfaces)
117
+ * [Type Aliases](#type-aliases)
115
118
  * [Enums](#enums)
116
119
 
117
120
  </docgen-index>
@@ -224,6 +227,48 @@ of the space underneath it.
224
227
  --------------------
225
228
 
226
229
 
230
+ ### addListener('statusBarVisibilityChanged', ...)
231
+
232
+ ```typescript
233
+ addListener(eventName: 'statusBarVisibilityChanged', listenerFunc: VisibilityChangeListener) => Promise<PluginListenerHandle>
234
+ ```
235
+
236
+ Listen for status bar visibility changes.
237
+ Fired when hide or show methods get called.
238
+
239
+ | Param | Type |
240
+ | ------------------ | ----------------------------------------------------------------------------- |
241
+ | **`eventName`** | <code>'statusBarVisibilityChanged'</code> |
242
+ | **`listenerFunc`** | <code><a href="#visibilitychangelistener">VisibilityChangeListener</a></code> |
243
+
244
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
245
+
246
+ **Since:** 7.0.0
247
+
248
+ --------------------
249
+
250
+
251
+ ### addListener('statusBarOverlayChanged', ...)
252
+
253
+ ```typescript
254
+ addListener(eventName: 'statusBarOverlayChanged', listenerFunc: OverlayChangeListener) => Promise<PluginListenerHandle>
255
+ ```
256
+
257
+ Listen for status bar overlay changes.
258
+ Fired when setOverlaysWebView gets called.
259
+
260
+ | Param | Type |
261
+ | ------------------ | ----------------------------------------------------------------------- |
262
+ | **`eventName`** | <code>'statusBarOverlayChanged'</code> |
263
+ | **`listenerFunc`** | <code><a href="#overlaychangelistener">OverlayChangeListener</a></code> |
264
+
265
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
266
+
267
+ **Since:** 7.0.0
268
+
269
+ --------------------
270
+
271
+
227
272
  ### Interfaces
228
273
 
229
274
 
@@ -250,12 +295,13 @@ of the space underneath it.
250
295
 
251
296
  #### StatusBarInfo
252
297
 
253
- | Prop | Type | Description | Since |
254
- | -------------- | --------------------------------------- | ----------------------------------------- | ----- |
255
- | **`visible`** | <code>boolean</code> | Whether the status bar is visible or not. | 1.0.0 |
256
- | **`style`** | <code><a href="#style">Style</a></code> | The current status bar style. | 1.0.0 |
257
- | **`color`** | <code>string</code> | The current status bar color. | 1.0.0 |
258
- | **`overlays`** | <code>boolean</code> | Whether the statusbar is overlaid or not. | 1.0.0 |
298
+ | Prop | Type | Description | Since |
299
+ | -------------- | --------------------------------------- | ------------------------------------------ | ----- |
300
+ | **`visible`** | <code>boolean</code> | Whether the status bar is visible or not. | 1.0.0 |
301
+ | **`style`** | <code><a href="#style">Style</a></code> | The current status bar style. | 1.0.0 |
302
+ | **`color`** | <code>string</code> | The current status bar color. | 1.0.0 |
303
+ | **`overlays`** | <code>boolean</code> | Whether the status bar is overlaid or not. | 1.0.0 |
304
+ | **`height`** | <code>number</code> | The height of the status bar. | 7.0.0 |
259
305
 
260
306
 
261
307
  #### SetOverlaysWebViewOptions
@@ -265,6 +311,26 @@ of the space underneath it.
265
311
  | **`overlay`** | <code>boolean</code> | Whether to overlay the status bar or not. | 1.0.0 |
266
312
 
267
313
 
314
+ #### PluginListenerHandle
315
+
316
+ | Prop | Type |
317
+ | ------------ | ----------------------------------------- |
318
+ | **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |
319
+
320
+
321
+ ### Type Aliases
322
+
323
+
324
+ #### VisibilityChangeListener
325
+
326
+ <code>(info: <a href="#statusbarinfo">StatusBarInfo</a>): void</code>
327
+
328
+
329
+ #### OverlayChangeListener
330
+
331
+ <code>(info: <a href="#statusbarinfo">StatusBarInfo</a>): void</code>
332
+
333
+
268
334
  ### Enums
269
335
 
270
336
 
@@ -43,7 +43,7 @@ android {
43
43
  buildTypes {
44
44
  release {
45
45
  minifyEnabled false
46
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
46
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
47
47
  }
48
48
  }
49
49
  lintOptions {
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
  /**
@@ -127,13 +128,19 @@ export interface StatusBarInfo {
127
128
  *
128
129
  * @since 1.0.0
129
130
  */
130
- color?: string;
131
+ color: string;
131
132
  /**
132
- * Whether the statusbar is overlaid or not.
133
+ * Whether the status bar is overlaid or not.
133
134
  *
134
135
  * @since 1.0.0
135
136
  */
136
- overlays?: boolean;
137
+ overlays: boolean;
138
+ /**
139
+ * The height of the status bar.
140
+ *
141
+ * @since 7.0.0
142
+ */
143
+ height: number;
137
144
  }
138
145
  export interface SetOverlaysWebViewOptions {
139
146
  /**
@@ -143,6 +150,8 @@ export interface SetOverlaysWebViewOptions {
143
150
  */
144
151
  overlay: boolean;
145
152
  }
153
+ export declare type VisibilityChangeListener = (info: StatusBarInfo) => void;
154
+ export declare type OverlayChangeListener = (info: StatusBarInfo) => void;
146
155
  export interface StatusBarPlugin {
147
156
  /**
148
157
  * Set the current style of the status bar.
@@ -185,6 +194,20 @@ export interface StatusBarPlugin {
185
194
  * @since 1.0.0
186
195
  */
187
196
  setOverlaysWebView(options: SetOverlaysWebViewOptions): Promise<void>;
197
+ /**
198
+ * Listen for status bar visibility changes.
199
+ * Fired when hide or show methods get called.
200
+ *
201
+ * @since 7.0.0
202
+ */
203
+ addListener(eventName: 'statusBarVisibilityChanged', listenerFunc: VisibilityChangeListener): Promise<PluginListenerHandle>;
204
+ /**
205
+ * Listen for status bar overlay changes.
206
+ * Fired when setOverlaysWebView gets called.
207
+ *
208
+ * @since 7.0.0
209
+ */
210
+ addListener(eventName: 'statusBarOverlayChanged', listenerFunc: OverlayChangeListener): Promise<PluginListenerHandle>;
188
211
  }
189
212
  /**
190
213
  * @deprecated Use `StyleOptions`.
@@ -1 +1 @@
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;AAiID;;;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 * For applications targeting Android 15, this property has no effect unless\n * the property windowOptOutEdgeToEdgeEnforcement is added to the application layout file.\n * Otherwise, the application assumes always overlays as true.\n * More details in https://developer.android.com/reference/android/R.attr#windowOptOutEdgeToEdgeEnforcement\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 *\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 *\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 *\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;AAsDxC,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;AA8JD;;;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 * For applications targeting Android 15, this property has no effect unless\n * the property windowOptOutEdgeToEdgeEnforcement is added to the application layout file.\n * Otherwise, the application assumes always overlays as true.\n * More details in https://developer.android.com/reference/android/R.attr#windowOptOutEdgeToEdgeEnforcement\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 *\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 *\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 *\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": "7.0.4",
3
+ "version": "7.0.6-dev-2500-20260319T084413.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": "e492876ac85661078e39664652b01ac9e0ab08c7"
84
+ }
86
85
  }