Skip to content

Commit 95dc7d8

Browse files
authored
fix(core): make SystemBars hide and show options optional (#8305)
1 parent ae800df commit 95dc7d8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/core-plugins.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,14 +617,14 @@ export interface SystemBarsPlugin {
617617
*
618618
* @since 8.0.0
619619
*/
620-
show(options: SystemBarsVisibilityOptions): Promise<void>;
620+
show(options?: SystemBarsVisibilityOptions): Promise<void>;
621621

622622
/**
623623
* Hide the system bars.
624624
*
625625
* @since 8.0.0
626626
*/
627-
hide(options: SystemBarsVisibilityOptions): Promise<void>;
627+
hide(options?: SystemBarsVisibilityOptions): Promise<void>;
628628

629629
/**
630630
* Set the animation to use when showing / hiding the status bar.

core/system-bars.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To control this behavior, use the `insetsHandling` configuration setting.
3939
## Example
4040

4141
```typescript
42-
import { SystemBars, SystemBarsStyle } from '@capacitor/core';
42+
import { SystemBars, SystemBarsStyle, SystemBarType } from '@capacitor/core';
4343

4444
const setSystemBarStyleDark = async () => {
4545
await SystemBars.setStyle({ style: SystemBarsStyle.Dark });
@@ -152,7 +152,7 @@ Set the current style of the system bars.
152152
### show(...)
153153

154154
```typescript
155-
show(options: SystemBarsVisibilityOptions) => Promise<void>
155+
show(options?: SystemBarsVisibilityOptions) => Promise<void>
156156
```
157157

158158
Show the system bars.
@@ -169,7 +169,7 @@ Show the system bars.
169169
### hide(...)
170170

171171
```typescript
172-
hide(options: SystemBarsVisibilityOptions) => Promise<void>
172+
hide(options?: SystemBarsVisibilityOptions) => Promise<void>
173173
```
174174

175175
Hide the system bars.

0 commit comments

Comments
 (0)