IUIFocusEnvironment Interface
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.
Interface defining the focus environment.
[Foundation.Protocol(Name="UIFocusEnvironment", WrapperType=typeof(UIKit.UIFocusEnvironmentWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUIFocusEnvironment : IDisposable, ObjCRuntime.INativeObject
type IUIFocusEnvironment = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
Properties
Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
PreferredFocusedView |
If not |
Methods
DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator) |
Delegate method called shortly after focus has changed to a new UIView. |
SetNeedsFocusUpdate() |
When |
ShouldUpdateFocus(UIFocusUpdateContext) |
Called prior to the current object either losing or receiving focus. If either focus environment returns |
UpdateFocusIfNeeded() |
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. |
Extension Methods
GetFocusItemContainer(IUIFocusEnvironment) |
Gets the focus container for the environment. |
GetParentFocusEnvironment(IUIFocusEnvironment) |
Gets the parent focus environment. |
GetPreferredFocusEnvironments(IUIFocusEnvironment) |
Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus. |