Share via


IUIFocusItem Interface

Definition

Interface that defines the CanBecomeFocused method.

[Foundation.Protocol(Name="UIFocusItem", WrapperType=typeof(UIKit.UIFocusItemWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidHintFocusMovement", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIFocusMovementHint) }, Selector="didHintFocusMovement:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="canBecomeFocused", IsProperty=true, IsRequired=true, IsStatic=false, Name="CanBecomeFocused", PropertyType=typeof(System.Boolean), Selector="canBecomeFocused")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="frame", IsProperty=true, IsRequired=true, IsStatic=false, Name="Frame", PropertyType=typeof(CoreGraphics.CGRect), Selector="frame")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="focusEffect", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusEffect", PropertyType=typeof(UIKit.UIFocusEffect), Selector="focusEffect")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="focusGroupPriority", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusGroupPriority", PropertyType=typeof(UIKit.UIFocusGroupPriority), Selector="focusGroupPriority")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isTransparentFocusItem", IsProperty=true, IsRequired=false, IsStatic=false, Name="IsTransparentFocusItem", PropertyType=typeof(System.Boolean), Selector="isTransparentFocusItem")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="focusItemDeferralMode", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusItemDeferralMode", PropertyType=typeof(UIKit.UIFocusItemDeferralMode), Selector="focusItemDeferralMode")]
public interface IUIFocusItem : IDisposable, UIKit.IUIFocusEnvironment
[Foundation.Protocol(Name="UIFocusItem", WrapperType=typeof(UIKit.UIFocusItemWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidHintFocusMovement", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIFocusMovementHint) }, Selector="didHintFocusMovement:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="canBecomeFocused", IsProperty=true, IsRequired=true, IsStatic=false, Name="CanBecomeFocused", PropertyType=typeof(System.Boolean), Selector="canBecomeFocused")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="frame", IsProperty=true, IsRequired=true, IsStatic=false, Name="Frame", PropertyType=typeof(CoreGraphics.CGRect), Selector="frame")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isTransparentFocusItem", IsProperty=true, IsRequired=false, IsStatic=false, Name="IsTransparentFocusItem", PropertyType=typeof(System.Boolean), Selector="isTransparentFocusItem")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="focusItemDeferralMode", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusItemDeferralMode", PropertyType=typeof(UIKit.UIFocusItemDeferralMode), Selector="focusItemDeferralMode")]
public interface IUIFocusItem : IDisposable, UIKit.IUIFocusEnvironment
[<Foundation.Protocol(Name="UIFocusItem", WrapperType=typeof(UIKit.UIFocusItemWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidHintFocusMovement", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIFocusMovementHint) }, Selector="didHintFocusMovement:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="canBecomeFocused", IsProperty=true, IsRequired=true, IsStatic=false, Name="CanBecomeFocused", PropertyType=typeof(System.Boolean), Selector="canBecomeFocused")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="frame", IsProperty=true, IsRequired=true, IsStatic=false, Name="Frame", PropertyType=typeof(CoreGraphics.CGRect), Selector="frame")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="focusEffect", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusEffect", PropertyType=typeof(UIKit.UIFocusEffect), Selector="focusEffect")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="focusGroupPriority", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusGroupPriority", PropertyType=typeof(UIKit.UIFocusGroupPriority), Selector="focusGroupPriority")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isTransparentFocusItem", IsProperty=true, IsRequired=false, IsStatic=false, Name="IsTransparentFocusItem", PropertyType=typeof(System.Boolean), Selector="isTransparentFocusItem")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="focusItemDeferralMode", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusItemDeferralMode", PropertyType=typeof(UIKit.UIFocusItemDeferralMode), Selector="focusItemDeferralMode")>]
type IUIFocusItem = interface
    interface INativeObject
    interface IDisposable
    interface IUIFocusEnvironment
[<Foundation.Protocol(Name="UIFocusItem", WrapperType=typeof(UIKit.UIFocusItemWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidHintFocusMovement", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIFocusMovementHint) }, Selector="didHintFocusMovement:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="canBecomeFocused", IsProperty=true, IsRequired=true, IsStatic=false, Name="CanBecomeFocused", PropertyType=typeof(System.Boolean), Selector="canBecomeFocused")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="frame", IsProperty=true, IsRequired=true, IsStatic=false, Name="Frame", PropertyType=typeof(CoreGraphics.CGRect), Selector="frame")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isTransparentFocusItem", IsProperty=true, IsRequired=false, IsStatic=false, Name="IsTransparentFocusItem", PropertyType=typeof(System.Boolean), Selector="isTransparentFocusItem")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="focusItemDeferralMode", IsProperty=true, IsRequired=false, IsStatic=false, Name="FocusItemDeferralMode", PropertyType=typeof(UIKit.UIFocusItemDeferralMode), Selector="focusItemDeferralMode")>]
type IUIFocusItem = interface
    interface INativeObject
    interface IDisposable
    interface IUIFocusEnvironment
Derived
Attributes
Implements

Properties

CanBecomeFocused
FocusEffect
FocusGroupIdentifier (Inherited from IUIFocusEnvironment)
FocusGroupPriority
FocusItemContainer

Gets the container that manages focus information for child focus items.

(Inherited from IUIFocusEnvironment)
FocusItemDeferralMode
Frame

Returns the frame in the reference coordinate space of the containing IUIFocusItemContainer.

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
IsTransparentFocusItem
ParentFocusEnvironment

Gets the parent focus environment.

(Inherited from IUIFocusEnvironment)
PreferredFocusedView

If not null, indicates the child UIView that should receive focus by default.

(Inherited from IUIFocusEnvironment)
PreferredFocusEnvironments

Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus.

(Inherited from IUIFocusEnvironment)

Methods

DidHintFocusMovement(UIFocusMovementHint)

Called when a focus change may soon happen.

DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)

Delegate method called shortly after focus has changed to a new UIView.

(Inherited from IUIFocusEnvironment)
GetSoundIdentifier(UIFocusUpdateContext) (Inherited from IUIFocusEnvironment)
SetNeedsFocusUpdate()

When this is the active focus environment, requests a focus update, which can potentially change the PreferredFocusedView. (See also UpdateFocusIfNeeded().)

(Inherited from IUIFocusEnvironment)
ShouldUpdateFocus(UIFocusUpdateContext)

Called prior to the current object either losing or receiving focus. If either focus environment returns false, the focus update is canceled.

(Inherited from IUIFocusEnvironment)
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.

(Inherited from IUIFocusEnvironment)

Extension Methods

GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
GetFocusGroupIdentifier(IUIFocusEnvironment)
GetPreferredFocusedView(IUIFocusEnvironment)

If not null, indicates the child UIView that should receive focus by default.

GetSoundIdentifier(IUIFocusEnvironment, UIFocusUpdateContext)
DidHintFocusMovement(IUIFocusItem, UIFocusMovementHint)

Called when a focus change may soon happen.

GetFocusEffect(IUIFocusItem)
GetFocusGroupPriority(IUIFocusItem)
GetFocusItemDeferralMode(IUIFocusItem)
GetIsTransparentFocusItem(IUIFocusItem)

Applies to