Flutter Engine
accessibility_bridge_ios.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_
6 #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_
7 
8 #include <vector>
9 
10 #include "flutter/lib/ui/semantics/semantics_node.h"
11 
12 @class UIView;
13 
14 namespace flutter {
15 class FlutterPlatformViewsController;
16 
17 /// Interface that represents an accessibility bridge for iOS.
19  public:
20  virtual ~AccessibilityBridgeIos() = default;
21  virtual UIView* view() const = 0;
22  virtual UIView<UITextInput>* textInputView() = 0;
23  virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action) = 0;
24  virtual void DispatchSemanticsAction(int32_t id,
26  std::vector<uint8_t> args) = 0;
27  /**
28  * A callback that is called when a SemanticObject receives focus.
29  *
30  * The input id is the uid of the newly focused SemanticObject.
31  */
32  virtual void AccessibilityObjectDidBecomeFocused(int32_t id) = 0;
33  /**
34  * A callback that is called when a SemanticObject loses focus
35  *
36  * The input id is the uid of the newly focused SemanticObject.
37  */
38  virtual void AccessibilityObjectDidLoseFocus(int32_t id) = 0;
40 };
41 
42 } // namespace flutter
43 
44 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_
G_BEGIN_DECLS FlValue * args
virtual UIView< UITextInput > * textInputView()=0
virtual void AccessibilityObjectDidBecomeFocused(int32_t id)=0
virtual void AccessibilityObjectDidLoseFocus(int32_t id)=0
Interface that represents an accessibility bridge for iOS.
SemanticsAction action
virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action)=0
virtual ~AccessibilityBridgeIos()=default
virtual FlutterPlatformViewsController * GetPlatformViewsController() const =0
virtual UIView * view() const =0