Flutter Engine
The 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 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
16namespace flutter {
17class 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;
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 // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_
Interface that represents an accessibility bridge for iOS.
virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action)=0
virtual std::shared_ptr< FlutterPlatformViewsController > GetPlatformViewsController() const =0
virtual void AccessibilityObjectDidLoseFocus(int32_t id)=0
virtual bool isVoiceOverRunning() const =0
virtual void AccessibilityObjectDidBecomeFocused(int32_t id)=0
virtual ~AccessibilityBridgeIos()=default
virtual UIView * view() const =0
virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action, fml::MallocMapping args)=0
virtual UIView< UITextInput > * textInputView()=0
A Mapping like NonOwnedMapping, but uses Free as its release proc.
Definition: mapping.h:144
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args