UIApplication.SetStatusBarStyle(UIStatusBarStyle, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the style of the status bar, optionally animating the change.
[Foundation.Export("setStatusBarStyle:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIViewController.PreferredStatusBarStyle' instead.")]
public virtual void SetStatusBarStyle (UIKit.UIStatusBarStyle statusBarStyle, bool animated);
abstract member SetStatusBarStyle : UIKit.UIStatusBarStyle * bool -> unit
override this.SetStatusBarStyle : UIKit.UIStatusBarStyle * bool -> unit
Parameters
- statusBarStyle
- UIStatusBarStyle
A constant that specifies the style for the status bar.
- animated
- Boolean
true
if transition to the new orientation should be animated; otherwise false
.
- Attributes