Share via


UIViewController.UpdateFocusIfNeeded Method

Definition

If any focus environment has a pending update, this method forces an immediate focus update. Unlike SetNeedsFocusUpdate(), this method may be called by any IUIFocusEnvironment, whether it currently contains focus or not.

[Foundation.Export("updateFocusIfNeeded")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void UpdateFocusIfNeeded();
[<Foundation.Export("updateFocusIfNeeded")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member UpdateFocusIfNeeded : unit -> unit
override this.UpdateFocusIfNeeded : unit -> unit

Implements

Attributes

Applies to