Unverified Commit 6379648b authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

[iOS,macOS] Clean up obsolete PlatformView warning (#135040)

PlatformViews have been supported without a custom engine build on iOS
for quite some time now, and are nearing support for macOS. Adds a link
to the website documentation covering creation of PlatformViews for iOS
and adds a TODO to do the same once the macOS PlatformView documentation
is ready.

Related: https://github.com/flutter/website/issues/9424
parent 70fd3350
......@@ -201,11 +201,7 @@ class PlatformViewsService {
return controller;
}
// TODO(amirh): reference the iOS plugin API for registering a UIView factory
// once it lands.
/// This is work in progress, not yet ready to be used, and requires a custom
/// engine build. Creates a controller for a new iOS UIView.
/// Factory method to create a `UiKitView`.
///
/// The `id` parameter is an unused unique identifier generated with
/// [platformViewsRegistry].
......@@ -218,6 +214,8 @@ class PlatformViewsService {
/// The `onFocus` parameter is a callback that will be invoked when the UIKit
/// view asks to get the input focus. If `creationParams` is non null then
/// `creationParamsCodec` must not be null.
///
/// See: https://docs.flutter.dev/platform-integration/ios/platform-views
static Future<UiKitViewController> initUiKitView({
required int id,
required String viewType,
......@@ -249,6 +247,8 @@ class PlatformViewsService {
return UiKitViewController._(id, layoutDirection);
}
// TODO(cbracken): Write and link website docs. https://github.com/flutter/website/issues/9424.
//
/// Factory method to create an `AppKitView`.
///
/// The `id` parameter is an unused unique identifier generated with
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment