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

#import <FlutterSemanticsScrollView.h>

Inheritance diagram for FlutterSemanticsScrollView:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithFrame:
 
(instancetype) - initWithCoder:
 
(instancetype) - initWithSemanticsObject:
 
(UIView *) - hitTest:withEvent: [implementation]
 
(BOOL- isAccessibilityElement [implementation]
 
(NSString *) - accessibilityLabel [implementation]
 
(NSAttributedString *) - accessibilityAttributedLabel [implementation]
 
(NSString *) - accessibilityValue [implementation]
 
(NSAttributedString *) - accessibilityAttributedValue [implementation]
 
(NSString *) - accessibilityHint [implementation]
 
(NSAttributedString *) - accessibilityAttributedHint [implementation]
 
(BOOL- accessibilityActivate [implementation]
 
(void) - accessibilityIncrement [implementation]
 
(void) - accessibilityDecrement [implementation]
 
(BOOL- accessibilityScroll: [implementation]
 
(BOOL- accessibilityPerformEscape [implementation]
 
(void) - accessibilityElementDidBecomeFocused [implementation]
 
(void) - accessibilityElementDidLoseFocus [implementation]
 
(id- accessibilityContainer [implementation]
 
(NSInteger) - accessibilityElementCount [implementation]
 

Properties

SemanticsObjectsemanticsObject
 

Detailed Description

A UIScrollView to represent Flutter scrollable in iOS accessibility services.

This class is hidden from the user and can't be interacted with. It sends all of selector calls from accessibility services to the owner SemanticsObject.

Definition at line 21 of file FlutterSemanticsScrollView.h.

Method Documentation

◆ accessibilityActivate

- (BOOL) accessibilityActivate
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

72 {
73 return [self.semanticsObject accessibilityActivate];
74}

◆ accessibilityAttributedHint

- (NSAttributedString *) accessibilityAttributedHint
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

68 {
69 return self.semanticsObject.accessibilityAttributedHint;
70}

◆ accessibilityAttributedLabel

- (NSAttributedString *) accessibilityAttributedLabel
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

52 {
53 return self.semanticsObject.accessibilityAttributedLabel;
54}

◆ accessibilityAttributedValue

- (NSAttributedString *) accessibilityAttributedValue
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

60 {
61 return self.semanticsObject.accessibilityAttributedValue;
62}

◆ accessibilityContainer

- (id) accessibilityContainer
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

100 {
101 return self.semanticsObject.accessibilityContainer;
102}

◆ accessibilityDecrement

- (void) accessibilityDecrement
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

80 {
81 [self.semanticsObject accessibilityDecrement];
82}

◆ accessibilityElementCount

- (NSInteger) accessibilityElementCount
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

104 {
105 return self.semanticsObject.children.count;
106}

◆ accessibilityElementDidBecomeFocused

- (void) accessibilityElementDidBecomeFocused
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

92 {
93 [self.semanticsObject accessibilityElementDidBecomeFocused];
94}

◆ accessibilityElementDidLoseFocus

- (void) accessibilityElementDidLoseFocus
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

96 {
97 [self.semanticsObject accessibilityElementDidLoseFocus];
98}

◆ accessibilityHint

- (NSString *) accessibilityHint
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

64 {
65 return self.semanticsObject.accessibilityHint;
66}

◆ accessibilityIncrement

- (void) accessibilityIncrement
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

76 {
77 [self.semanticsObject accessibilityIncrement];
78}

◆ accessibilityLabel

- (NSString *) accessibilityLabel
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

48 {
49 return self.semanticsObject.accessibilityLabel;
50}

◆ accessibilityPerformEscape

- (BOOL) accessibilityPerformEscape
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

88 {
89 return [self.semanticsObject accessibilityPerformEscape];
90}

◆ accessibilityScroll:

- (BOOL) accessibilityScroll: (UIAccessibilityScrollDirection)  direction
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

84 :(UIAccessibilityScrollDirection)direction {
85 return [self.semanticsObject accessibilityScroll:direction];
86}

◆ accessibilityValue

- (NSString *) accessibilityValue
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

56 {
57 return self.semanticsObject.accessibilityValue;
58}

◆ hitTest:withEvent:

- (UIView *) hitTest: (CGPoint)  point
withEvent: (UIEvent*)  event 
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

22 :(CGPoint)point withEvent:(UIEvent*)event {
23 return nil;
24}

◆ initWithCoder:

- (instancetype) initWithCoder: (NSCoder *)  NS_UNAVAILABLE

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect)  NS_UNAVAILABLE

◆ initWithSemanticsObject:

- (instancetype) initWithSemanticsObject: (SemanticsObject*)  semanticsObject

Definition at line 10 of file FlutterSemanticsScrollView.mm.

15 self = [super initWithFrame:CGRectZero];
16 if (self) {
17 _semanticsObject = semanticsObject;
18 }
19 return self;
20}

◆ isAccessibilityElement

- (BOOL) isAccessibilityElement
implementation

Definition at line 10 of file FlutterSemanticsScrollView.mm.

30 {
31 if (![self.semanticsObject isAccessibilityBridgeAlive]) {
32 return NO;
33 }
34
36 return YES;
37 }
38 if (self.contentSize.width > self.frame.size.width ||
39 self.contentSize.height > self.frame.size.height) {
40 // In SwitchControl or VoiceControl, the isAccessibilityElement must return YES
41 // in order to use scroll actions.
42 return ![self.semanticsObject bridge]->isVoiceOverRunning();
43 } else {
44 return NO;
45 }
46}

◆ NS_UNAVAILABLE

- (instancetype) NS_UNAVAILABLE

Property Documentation

◆ semanticsObject

- (SemanticsObject*) semanticsObject
readwritenonatomicweak

Definition at line 23 of file FlutterSemanticsScrollView.h.


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