iOS Guides | Samples

MonoTouch.UIKit.IUIFocusEnvironment

Interface defining the focus environment.

See Also: IUIFocusEnvironment

Syntax

[MonoTouch.Foundation.Protocol(Name="UIFocusEnvironment", WrapperType=typeof(MonoTouch.UIKit.UIFocusEnvironmentWrapper))]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetNeedsFocusUpdate", Selector="setNeedsFocusUpdate")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UpdateFocusIfNeeded", Selector="updateFocusIfNeeded")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ShouldUpdateFocus", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.Boolean), Selector="shouldUpdateFocusInContext:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidUpdateFocus", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="didUpdateFocusInContext:withAnimationCoordinator:")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.Weak, GetterSelector="preferredFocusedView", IsProperty=true, IsRequired=true, IsStatic=false, Name="PreferredFocusedView", PropertyType=typeof(MonoTouch.UIKit.UIView), Selector="preferredFocusedView")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="preferredFocusEnvironments", IsProperty=true, IsRequired=false, IsStatic=false, Name="PreferredFocusEnvironments", PropertyType=typeof(MonoTouch.UIKit.IUIFocusEnvironment[]), Selector="preferredFocusEnvironments")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 9, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUIFocusEnvironment : INativeObject, IDisposable

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.IUIFocusEnvironment are listed below.

Public Properties

[read-only]
PreferredFocusedViewUIView. If not null, indicates the child UIView that should receive focus by default.

Public Methods

DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)
Delegate method called shortly after focus has changed to a new UIView.
SetNeedsFocusUpdate()
When this is the active focus environment, requests a focus update, which can potentially change the UIView.PreferredFocusView. (See also UIView.UpdateFocusIfNeeded.)
ShouldUpdateFocus(UIFocusUpdateContext) : Boolean
Called prior to the current object either losing or receiving focus. If either focus environment returns false, the focus update is canceled.
UpdateFocusIfNeeded()
If any focus environment has a pending update, this method forces an immediate focus update. Unlike IUIFocusEnvironment.SetNeedsFocusUpdate, this method may be called by any IUIFocusEnvironment, whether it currently contains focus or not.