Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
fl_accessibility_channel.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_LINUX_FL_ACCESSIBILITY_CHANNEL_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_FL_ACCESSIBILITY_CHANNEL_H_
7
9
10G_BEGIN_DECLS
11
12G_DECLARE_FINAL_TYPE(FlAccessibilityChannel,
13 fl_accessibility_channel,
14 FL,
15 ACCESSIBILITY_CHANNEL,
16 GObject);
17
18// A direction in which text flows.
23
24// Assertiveness level of an accessibility announcement.
29
30/**
31 * FlAccessibilityChannel:
32 *
33 * #FlAccessibilityChannel is a channel that implements the shell side
34 * of SystemChannels.accessibility from the Flutter services library.
35 */
36
37typedef struct {
38 void (*send_announcement)(int64_t view_id,
39 const char* message,
42 gpointer user_data);
44
45/**
46 * fl_accessibility_channel_new:
47 * @messenger: an #FlBinaryMessenger
48 * @vtable: callbacks for incoming method calls.
49 * @user_data: data to pass in callbacks.
50 *
51 * Creates a new channel that handles accessibility requests from Dart.
52 *
53 * Returns: a new #FlAccessibilityChannel
54 */
55FlAccessibilityChannel* fl_accessibility_channel_new(
56 FlBinaryMessenger* messenger,
58 gpointer user_data);
59
60G_END_DECLS
61
62#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_ACCESSIBILITY_CHANNEL_H_
@ FL_TEXT_DIRECTION_LTR
@ FL_TEXT_DIRECTION_RTL
@ FL_ASSERTIVENESS_POLITE
@ FL_ASSERTIVENESS_ASSERTIVE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlAccessibilityChannel, fl_accessibility_channel, FL, ACCESSIBILITY_CHANNEL, GObject)
FlAccessibilityChannel * fl_accessibility_channel_new(FlBinaryMessenger *messenger, FlAccessibilityChannelVTable *vtable, gpointer user_data)
const char * message
const char FlTextDirection text_direction
const char FlTextDirection FlAssertiveness assertiveness
G_BEGIN_DECLS FlutterViewId view_id