Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/core-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,14 +617,14 @@ export interface SystemBarsPlugin {
*
* @since 8.0.0
*/
show(options: SystemBarsVisibilityOptions): Promise<void>;
show(options?: SystemBarsVisibilityOptions): Promise<void>;

/**
* Hide the system bars.
*
* @since 8.0.0
*/
hide(options: SystemBarsVisibilityOptions): Promise<void>;
hide(options?: SystemBarsVisibilityOptions): Promise<void>;

/**
* Set the animation to use when showing / hiding the status bar.
Expand Down
6 changes: 3 additions & 3 deletions core/system-bars.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ To control this behavior, use the `insetsHandling` configuration setting.
## Example

```typescript
import { SystemBars, SystemBarsStyle } from '@capacitor/core';
import { SystemBars, SystemBarsStyle, SystemBarType } from '@capacitor/core';

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

```typescript
show(options: SystemBarsVisibilityOptions) => Promise<void>
show(options?: SystemBarsVisibilityOptions) => Promise<void>
```

Show the system bars.
Expand All @@ -169,7 +169,7 @@ Show the system bars.
### hide(...)

```typescript
hide(options: SystemBarsVisibilityOptions) => Promise<void>
hide(options?: SystemBarsVisibilityOptions) => Promise<void>
```

Hide the system bars.
Expand Down
Loading