Edit

Share via


UIApplication.SetStatusBarHidden Method

Definition

Overloads

SetStatusBarHidden(Boolean, UIStatusBarAnimation)

Hides or shows the status bar.

SetStatusBarHidden(Boolean, Boolean)

Hides or shows the animation bar, and whether it should be animated.

SetStatusBarHidden(Boolean, UIStatusBarAnimation)

Hides or shows the status bar.

[Foundation.Export("setStatusBarHidden:withAnimation:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIViewController.PrefersStatusBarHidden' instead.")]
public virtual void SetStatusBarHidden (bool state, UIKit.UIStatusBarAnimation animation);
abstract member SetStatusBarHidden : bool * UIKit.UIStatusBarAnimation -> unit
override this.SetStatusBarHidden : bool * UIKit.UIStatusBarAnimation -> unit

Parameters

state
Boolean

true to hide the status bar, false to reveal it.

animation
UIStatusBarAnimation

The animation to use.

Attributes

Applies to

SetStatusBarHidden(Boolean, Boolean)

Hides or shows the animation bar, and whether it should be animated.

[Foundation.Export("setStatusBarHidden:animated:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 3, 2, ObjCRuntime.PlatformArchitecture.All, "Use 'SetStatusBarHidden (bool, UIStatusBarAnimation)' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetStatusBarHidden (bool hidden, bool animated);
abstract member SetStatusBarHidden : bool * bool -> unit
override this.SetStatusBarHidden : bool * bool -> unit

Parameters

hidden
Boolean

true to hide the status bar, false to reveal it.

animated
Boolean

Constant that indicates whether there should be animation, and, if animation is requested, whether it should fade the status bar in or out or slide the status bar in or out.

Attributes

Applies to