diff --git a/core/src/core-plugins.ts b/core/src/core-plugins.ts index 8a4bd755f..276fd0a97 100644 --- a/core/src/core-plugins.ts +++ b/core/src/core-plugins.ts @@ -617,14 +617,14 @@ export interface SystemBarsPlugin { * * @since 8.0.0 */ - show(options: SystemBarsVisibilityOptions): Promise; + show(options?: SystemBarsVisibilityOptions): Promise; /** * Hide the system bars. * * @since 8.0.0 */ - hide(options: SystemBarsVisibilityOptions): Promise; + hide(options?: SystemBarsVisibilityOptions): Promise; /** * Set the animation to use when showing / hiding the status bar. diff --git a/core/system-bars.md b/core/system-bars.md index 2f9b78603..c7654063b 100644 --- a/core/system-bars.md +++ b/core/system-bars.md @@ -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 }); @@ -152,7 +152,7 @@ Set the current style of the system bars. ### show(...) ```typescript -show(options: SystemBarsVisibilityOptions) => Promise +show(options?: SystemBarsVisibilityOptions) => Promise ``` Show the system bars. @@ -169,7 +169,7 @@ Show the system bars. ### hide(...) ```typescript -hide(options: SystemBarsVisibilityOptions) => Promise +hide(options?: SystemBarsVisibilityOptions) => Promise ``` Hide the system bars.