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 <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.
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,
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 // 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 bool isVoiceOverRunning() const =0
virtual void AccessibilityObjectDidLoseFocus(int32_t id)=0
Interface that represents an accessibility bridge for iOS.
virtual std::shared_ptr< FlutterPlatformViewsController > GetPlatformViewsController() const =0
SemanticsAction action
virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action)=0
A Mapping like NonOwnedMapping, but uses Free as its release proc.
Definition: mapping.h:129
virtual ~AccessibilityBridgeIos()=default
virtual UIView * view() const =0