| Flutter iOS Embedder |

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 FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_
7
8 #include <memory>
9 #include <vector>
10
11 #import "flutter/fml/mapping.h"
12 #include "flutter/lib/ui/semantics/semantics_node.h"
13
14 @class UIView;
15
16 namespace flutter {
17 class FlutterPlatformViewsController;
18
19 /// Interface that represents an accessibility bridge for iOS.
20 class AccessibilityBridgeIos {
21 public:
22 virtual ~AccessibilityBridgeIos() = default;
23 virtual UIView* view() const = 0;
24 virtual bool isVoiceOverRunning() const = 0;
25 virtual UIView<UITextInput>* textInputView() = 0;
26 virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action) = 0;
27 virtual void DispatchSemanticsAction(int32_t id,
28 flutter::SemanticsAction action,
29 fml::MallocMapping args) = 0;
30 /**
31 * A callback that is called when a SemanticObject receives focus.
32 *
33 * The input id is the uid of the newly focused SemanticObject.
34 */
35 virtual void AccessibilityObjectDidBecomeFocused(int32_t id) = 0;
36 /**
37 * A callback that is called when a SemanticObject loses focus
38 *
39 * The input id is the uid of the newly focused SemanticObject.
40 */
41 virtual void AccessibilityObjectDidLoseFocus(int32_t id) = 0;
42 virtual std::shared_ptr<FlutterPlatformViewsController> GetPlatformViewsController() const = 0;
43 };
44
45 } // namespace flutter
46
47 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_
flutter::AccessibilityBridgeIos::isVoiceOverRunning
virtual bool isVoiceOverRunning() const =0
flutter::AccessibilityBridgeIos::GetPlatformViewsController
virtual std::shared_ptr< FlutterPlatformViewsController > GetPlatformViewsController() const =0
flutter::AccessibilityBridgeIos::~AccessibilityBridgeIos
virtual ~AccessibilityBridgeIos()=default
flutter::AccessibilityBridgeIos::view
virtual UIView * view() const =0
flutter::AccessibilityBridgeIos::textInputView
virtual UIView< UITextInput > * textInputView()=0
flutter
Definition: accessibility_bridge.h:28
flutter::AccessibilityBridgeIos::DispatchSemanticsAction
virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action)=0
flutter::AccessibilityBridgeIos
Interface that represents an accessibility bridge for iOS.
Definition: accessibility_bridge_ios.h:20
flutter::AccessibilityBridgeIos::AccessibilityObjectDidBecomeFocused
virtual void AccessibilityObjectDidBecomeFocused(int32_t id)=0
flutter::AccessibilityBridgeIos::AccessibilityObjectDidLoseFocus
virtual void AccessibilityObjectDidLoseFocus(int32_t id)=0