@@ -1110,7 +1110,7 @@ typedef struct {
1110
1110
} FlutterSemanticsNode ;
1111
1111
1112
1112
/// `FlutterSemanticsCustomAction` ID used as a sentinel to signal the end of a
1113
- /// batch of semantics custom action updates. This is unused if using
1113
+ /// batch of semantics custom action updates. This is unused if using
1114
1114
/// `FlutterUpdateSemanticsCallback`.
1115
1115
FLUTTER_EXPORT
1116
1116
extern const int32_t kFlutterSemanticsCustomActionIdBatchEnd ;
@@ -1759,16 +1759,6 @@ typedef struct {
1759
1759
/// The callback invoked by the engine in root isolate scope. Called
1760
1760
/// immediately after the root isolate has been created and marked runnable.
1761
1761
VoidCallback root_isolate_create_callback ;
1762
- /// The callback invoked by the engine in order to give the embedder the
1763
- /// chance to respond to updates to semantics nodes and custom actions from
1764
- /// the Dart application.
1765
- ///
1766
- /// The callback will be invoked on the thread on which the `FlutterEngineRun`
1767
- /// call is made.
1768
- ///
1769
- /// If this callback is provided, update_semantics_node_callback and
1770
- /// update_semantics_custom_action_callback must not be provided.
1771
- FlutterUpdateSemanticsCallback update_semantics_callback ;
1772
1762
/// The legacy callback invoked by the engine in order to give the embedder
1773
1763
/// the chance to respond to semantics node updates from the Dart application.
1774
1764
/// Semantics node updates are sent in batches terminated by a 'batch end'
@@ -1778,8 +1768,9 @@ typedef struct {
1778
1768
/// The callback will be invoked on the thread on which the `FlutterEngineRun`
1779
1769
/// call is made.
1780
1770
///
1781
- /// Embedders should use `update_semantics_callback` instead. If this callback
1782
- /// is provided, `update_semantics_callback` must not be provided.
1771
+ /// @deprecated Prefer using `update_semantics_callback` instead. If this
1772
+ /// calback is provided, `update_semantics_callback` must not
1773
+ /// be provided.
1783
1774
FlutterUpdateSemanticsNodeCallback update_semantics_node_callback ;
1784
1775
/// The legacy callback invoked by the engine in order to give the embedder
1785
1776
/// the chance to respond to updates to semantics custom actions from the Dart
@@ -1790,6 +1781,10 @@ typedef struct {
1790
1781
///
1791
1782
/// The callback will be invoked on the thread on which the `FlutterEngineRun`
1792
1783
/// call is made.
1784
+ ///
1785
+ /// @deprecated Prefer using `update_semantics_callback` instead. If this
1786
+ /// calback is provided, `update_semantics_callback` must not
1787
+ /// be provided.
1793
1788
FlutterUpdateSemanticsCustomActionCallback
1794
1789
update_semantics_custom_action_callback ;
1795
1790
/// Path to a directory used to store data that is cached across runs of a
@@ -1926,6 +1921,17 @@ typedef struct {
1926
1921
//
1927
1922
// The first argument is the `user_data` from `FlutterEngineInitialize`.
1928
1923
OnPreEngineRestartCallback on_pre_engine_restart_callback ;
1924
+
1925
+ /// The callback invoked by the engine in order to give the embedder the
1926
+ /// chance to respond to updates to semantics nodes and custom actions from
1927
+ /// the Dart application.
1928
+ ///
1929
+ /// The callback will be invoked on the thread on which the `FlutterEngineRun`
1930
+ /// call is made.
1931
+ ///
1932
+ /// If this callback is provided, update_semantics_node_callback and
1933
+ /// update_semantics_custom_action_callback must not be provided.
1934
+ FlutterUpdateSemanticsCallback update_semantics_callback ;
1929
1935
} FlutterProjectArgs ;
1930
1936
1931
1937
#ifndef FLUTTER_ENGINE_NO_PROTOTYPES
0 commit comments