@@ -167,11 +167,14 @@ FLUTTER_EXPORT FlutterDesktopViewRef FlutterDesktopViewCreateFromElmParent(
167167// @warning This API is a work-in-progress and may change.
168168FLUTTER_EXPORT void FlutterDesktopViewDestroy (FlutterDesktopViewRef view );
169169
170- // Returns a handle to evas object that the FlutterView is drawn to .
170+ // Returns a native UI toolkit handle for manipulation in host application .
171171//
172- // Cast the returned void* to Evas_Object*.
172+ // Cast the returned void*
173+ // - view elementary : to Evas_Object*.
174+ // - window elementary : to Evas_Object*
175+ // - window ecore wl2 : to Ecore_Wl2_Window*
173176// @warning This API is a work-in-progress and may change.
174- FLUTTER_EXPORT void * FlutterDesktopViewGetEvasObject (
177+ FLUTTER_EXPORT void * FlutterDesktopViewGetNativeHandle (
175178 FlutterDesktopViewRef view );
176179
177180// Resizes the view.
@@ -182,11 +185,8 @@ FLUTTER_EXPORT void FlutterDesktopViewResize(FlutterDesktopViewRef view,
182185
183186// ========== Plugin Registrar (extensions) ==========
184187
185- // Returns the window associated with this registrar's engine instance.
186- //
187- // If the app runs on a wearable device, cast void* to Evas_Object*,
188- // otherwise cast it to Ecore_Wl2_Window*.
189- FLUTTER_EXPORT void * FlutterDesktopPluginRegistrarGetNativeWindow (
188+ // Returns the view associated with this registrar's engine instance.
189+ FLUTTER_EXPORT FlutterDesktopViewRef FlutterDesktopPluginRegistrarGetView (
190190 FlutterDesktopPluginRegistrarRef registrar );
191191
192192#if defined(__cplusplus )
0 commit comments