5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_SEMANTICSOBJECT_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_SEMANTICSOBJECT_H_
8 #import <UIKit/UIKit.h>
10 #include "flutter/fml/macros.h"
11 #include "flutter/fml/memory/weak_ptr.h"
12 #include "flutter/lib/ui/semantics/semantics_node.h"
35 @property(nonatomic, readonly) int32_t
uid;
51 @property(nonatomic, readonly) fml::WeakPtr<flutter::AccessibilityBridgeIos>
bridge;
56 @property(nonatomic, readonly) flutter::SemanticsNode
node;
67 @property(nonatomic, copy) NSArray<SemanticsObject*>*
children;
98 - (void)setSemanticsNode:(const
flutter::SemanticsNode*)node NS_REQUIRES_SUPER;
100 - (void)replaceChildAtIndex:(NSInteger)index withChild:(
SemanticsObject*)child;
102 - (BOOL)nodeWillCauseLayoutChange:(const
flutter::SemanticsNode*)node;
104 - (BOOL)nodeWillCauseScroll:(const
flutter::SemanticsNode*)node;
106 - (BOOL)nodeShouldTriggerAnnouncement:(const
flutter::SemanticsNode*)node;
122 #pragma mark - Designated initializers
124 - (instancetype)init
__attribute__((unavailable("Use initWithBridge instead")));
125 - (instancetype)initWithBridge:(fml::WeakPtr<
flutter::AccessibilityBridgeIos>)bridge
126 uid:(int32_t)uid NS_DESIGNATED_INITIALIZER;
139 @property(nonatomic) int32_t
uid;
170 - (instancetype)initWithBridge:(fml::WeakPtr<
flutter::AccessibilityBridgeIos>)bridge
171 uid:(int32_t)uid NS_UNAVAILABLE;
173 - (instancetype)initWithBridge:(fml::WeakPtr<
flutter::AccessibilityBridgeIos>)bridge
176 NS_DESIGNATED_INITIALIZER;
229 - (instancetype)initWithAccessibilityContainer:(
id)container NS_UNAVAILABLE;
230 - (instancetype)initWithSemanticsObject:(
SemanticsObject*)semanticsObject
231 bridge:(fml::WeakPtr<
flutter::AccessibilityBridgeIos>)bridge
232 NS_DESIGNATED_INITIALIZER;
238 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_SEMANTICSOBJECT_H_