Flutter Engine
The Flutter Engine
Instance Methods | List of all members
FlutterSemanticsObject Class Reference

#import <SemanticsObject.h>

Inheritance diagram for FlutterSemanticsObject:
SemanticsObject

Instance Methods

(instancetype) - initWithBridge:uid: [implementation]
 
(UIAccessibilityTraits) - accessibilityTraits [implementation]
 
- Instance Methods inherited from SemanticsObject
(BOOL- isAccessibilityBridgeAlive
 
(void) - setSemanticsNode:
 
(void) - replaceChildAtIndex:withChild:
 
(BOOL- nodeWillCauseLayoutChange:
 
(BOOL- nodeWillCauseScroll:
 
(BOOL- nodeShouldTriggerAnnouncement:
 
(void) - collectRoutes:
 
(NSString *) - routeName
 
(BOOL- onCustomAccessibilityAction:
 
(void) - accessibilityBridgeDidFinishUpdate
 
((unavailable("Use initWithBridge instead") - __attribute__
 
(instancetype) - initWithBridge:uid:
 
(void) - dealloc [implementation]
 
(void) - setChildren: [implementation]
 
(void) - setChildrenInHitTestOrder: [implementation]
 
(NSAttributedString *) - createAttributedStringFromString:withAttributes: [implementation]
 
(void) - showOnScreen [implementation]
 
(BOOL- isAccessibilityElement [implementation]
 
(bool) - isFocusable [implementation]
 
(NSString *) - accessibilityIdentifier [implementation]
 
(NSString *) - accessibilityLabel [implementation]
 
(bool) - containsPoint: [implementation]
 
(id- search: [implementation]
 
(id- _accessibilityHitTest:withEvent: [implementation]
 
(BOOL- accessibilityScrollToVisible [implementation]
 
(BOOL- accessibilityScrollToVisibleWithChild: [implementation]
 
(NSAttributedString *) - accessibilityAttributedLabel [implementation]
 
(NSString *) - accessibilityHint [implementation]
 
(NSAttributedString *) - accessibilityAttributedHint [implementation]
 
(NSString *) - accessibilityValue [implementation]
 
(NSAttributedString *) - accessibilityAttributedValue [implementation]
 
(CGRect) - accessibilityFrame [implementation]
 
(CGRect) - globalRect [implementation]
 
(void) - setAccessibilityContainer: [implementation]
 
(id- accessibilityContainer [implementation]
 
(BOOL- accessibilityActivate [implementation]
 
(void) - accessibilityIncrement [implementation]
 
(void) - accessibilityDecrement [implementation]
 
(BOOL- accessibilityScroll: [implementation]
 
(BOOL- accessibilityPerformEscape [implementation]
 
(void) - accessibilityElementDidBecomeFocused [implementation]
 
(void) - accessibilityElementDidLoseFocus [implementation]
 

Additional Inherited Members

- Properties inherited from SemanticsObject
int32_t uid
 
SemanticsObjectparent
 
fml::WeakPtr< flutter::AccessibilityBridgeIosbridge
 
flutter::SemanticsNode node
 
BOOL hasChildren
 
NSArray< SemanticsObject * > * children
 
NSArray< SemanticsObject * > * childrenInHitTestOrder
 
id nativeAccessibility
 
SemanticsObjectContainercontainer [implementation]
 

Detailed Description

The default implementation of SemanticsObject for most accessibility elements in the iOS accessibility tree.

Use this implementation for nodes that do not need to be expressed via UIKit-specific protocols (it only implements NSObject).

See also:

Definition at line 154 of file SemanticsObject.h.

Method Documentation

◆ accessibilityTraits

- (UIAccessibilityTraits) accessibilityTraits
implementation

Definition at line 255 of file SemanticsObject.mm.

786 {
787 UIAccessibilityTraits traits = UIAccessibilityTraitNone;
789 self.node.HasAction(flutter::SemanticsAction::kDecrease)) {
790 traits |= UIAccessibilityTraitAdjustable;
791 }
792 // This should also capture radio buttons.
795 traits |= UIAccessibilityTraitButton;
796 }
798 traits |= UIAccessibilityTraitSelected;
799 }
801 traits |= UIAccessibilityTraitButton;
802 }
804 !self.node.HasFlag(flutter::SemanticsFlags::kIsEnabled)) {
805 traits |= UIAccessibilityTraitNotEnabled;
806 }
808 traits |= UIAccessibilityTraitHeader;
809 }
811 traits |= UIAccessibilityTraitImage;
812 }
814 traits |= UIAccessibilityTraitUpdatesFrequently;
815 }
817 traits |= UIAccessibilityTraitLink;
818 }
819 if (traits == UIAccessibilityTraitNone && ![self hasChildren] &&
820 self.accessibilityLabel.length != 0 &&
821 !self.node.HasFlag(flutter::SemanticsFlags::kIsTextField)) {
822 traits = UIAccessibilityTraitStaticText;
823 }
824 return traits;
825}
NSString * accessibilityLabel()
flutter::SemanticsNode node
bool HasAction(SemanticsAction action) const
bool HasFlag(SemanticsFlags flag) const

◆ initWithBridge:uid:

- (instancetype) initWithBridge: (fml::WeakPtr<flutter::AccessibilityBridgeIos>)  bridge
uid: (int32_t)  uid 
implementation

Reimplemented from SemanticsObject.

Definition at line 255 of file SemanticsObject.mm.

779 uid:(int32_t)uid {
780 self = [super initWithBridge:bridge uid:uid];
781 return self;
782}
fml::WeakPtr< flutter::AccessibilityBridgeIos > bridge

The documentation for this class was generated from the following files: