UIApplication.SetStatusBarHidden Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
SetStatusBarHidden(Boolean, UIStatusBarAnimation) |
Masque ou affiche la barre d’état. |
SetStatusBarHidden(Boolean, Boolean) |
Masque ou affiche la barre d’animation et indique si elle doit être animée. |
SetStatusBarHidden(Boolean, UIStatusBarAnimation)
Masque ou affiche la barre d’état.
[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
Paramètres
- state
- Boolean
true
pour masquer la barre d’état, false
pour la révéler.
- animation
- UIStatusBarAnimation
Animation à utiliser.
- Attributs
S’applique à
SetStatusBarHidden(Boolean, Boolean)
Masque ou affiche la barre d’animation et indique si elle doit être animée.
[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
Paramètres
- hidden
- Boolean
true
pour masquer la barre d’état, false
pour la révéler.
- animated
- Boolean
Constante qui indique s’il doit y avoir une animation et, si l’animation est demandée, si elle doit faire disparaître la barre d’état ou faire glisser la barre d’état vers ou vers l’extérieur.
- Attributs