Export FlutterSemanticsUpdateNotification and improve docs (flutter/engine#8203)

* Export FlutterSemanticsUpdateNotification and improve docs
This commit is contained in:
Dan Field
2019-03-18 19:32:49 -07:00
committed by GitHub
parent f6d9154d24
commit 129a14f259
2 changed files with 8 additions and 1 deletions

View File

@@ -146,10 +146,16 @@ FLUTTER_EXPORT
* This method must only be called after launching the engine via
* `-runWithEntrypoint:` or `-runWithEntryPoint:libraryURI`.
*
* Although this method returns synchronously, it does not guarantee that a
* semantics tree is actually available when the method returns. It
* synchronously ensures that the next frame the Flutter framework creates will
* have a semantics tree.
*
* You can subscribe to semantics updates via `NSNotificationCenter` by adding
* an observer for the name `FlutterSemanticsUpdateNotification`. The `object`
* parameter will be the `FlutterViewController` associated with the semantics
* update.
* update. This will asynchronously fire after a semantics tree has actually
* built (which may be some time after the frame has been rendered).
*/
- (void)ensureSemanticsEnabled;

View File

@@ -23,6 +23,7 @@
* The object passed as the sender is the `FlutterViewController` associated
* with the update.
*/
FLUTTER_EXPORT
extern NSNotificationName const FlutterSemanticsUpdateNotification;
/**