Share via


IUIFocusItem 介面

定義

定義 方法的 CanBecomeFocused 介面。

[Foundation.Protocol(Name="UIFocusItem", WrapperType=typeof(UIKit.UIFocusItemWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUIFocusItem : IDisposable, UIKit.IUIFocusEnvironment
type IUIFocusItem = interface
    interface INativeObject
    interface IDisposable
    interface IUIFocusEnvironment
衍生
屬性
實作

屬性

CanBecomeFocused

定義 方法的 CanBecomeFocused 介面。

Handle

處理 unmanaged 物件標記法) (指標。

(繼承來源 INativeObject)
PreferredFocusedView

如果不是 null ,表示應該預設接收焦點的子 UIView 系。

(繼承來源 IUIFocusEnvironment)

方法

DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)

焦點變更為新的 UIView 之後不久呼叫的委派方法。

(繼承來源 IUIFocusEnvironment)
SetNeedsFocusUpdate()

當 是作用中的焦點環境時 this ,會要求焦點更新,這可能會變更 PreferredFocusedView 。 (另請參閱 UpdateFocusIfNeeded())。

(繼承來源 IUIFocusEnvironment)
ShouldUpdateFocus(UIFocusUpdateContext)

在目前物件遺失或接收焦點之前呼叫。 如果任一焦點環境傳 false 回 ,則會取消焦點更新。

(繼承來源 IUIFocusEnvironment)
UpdateFocusIfNeeded()

如果有任何焦點環境有擱置的更新,此方法會強制立即焦點更新。 不同于 SetNeedsFocusUpdate() ,不論此方法目前是否包含焦點,都可以由任何 IUIFocusEnvironment 呼叫。

(繼承來源 IUIFocusEnvironment)

擴充方法

GetFocusItemContainer(IUIFocusEnvironment)

取得環境的焦點容器。

GetParentFocusEnvironment(IUIFocusEnvironment)

取得父焦點環境。

GetPreferredFocusEnvironments(IUIFocusEnvironment)

取得焦點環境的清單,依優先順序排序,環境在更新焦點時偏好。

DidHintFocusMovement(IUIFocusItem, UIFocusMovementHint)

當焦點變更可能即將發生時呼叫。

GetFrame(IUIFocusItem)

傳回包含 IUIFocusItemContainer 之 參考座標空間中的框架。

適用於