UIApplication.SetStatusBarOrientation(UIInterfaceOrientation, Boolean) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ステータス バーを に orientation
設定します。
[Foundation.Export("setStatusBarOrientation:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual void SetStatusBarOrientation(UIKit.UIInterfaceOrientation orientation, bool animated);
abstract member SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit
override this.SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit
パラメーター
- orientation
- UIInterfaceOrientation
ステータス バーの特定の向き。
- animated
- Boolean
true
新しい向きへの切り替えをアニメーション化する必要がある場合は 。 false
切り替えをすぐに行う必要がある場合は 、アニメーションは必要ありません。
- 属性
注釈
アプリケーションで回転を自動的に処理することが予想される場合は、このメソッドを使用しないでください。 このメソッドが呼び出されると、ステータス バーはローテーションに応じて自動的に変更されません。