File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,11 @@ void FlutterDesktopEngineNotifyAppIsDetached(FlutterDesktopEngineRef engine) {
181181 EngineFromHandle (engine)->lifecycle_channel ()->AppIsDetached ();
182182}
183183
184+ void FlutterDesktopViewDestroy (FlutterDesktopViewRef view_ref) {
185+ flutter::FlutterTizenView* view = ViewFromHandle (view_ref);
186+ delete view;
187+ }
188+
184189void FlutterDesktopViewResize (FlutterDesktopViewRef view,
185190 int32_t width,
186191 int32_t height) {
Original file line number Diff line number Diff line change @@ -152,14 +152,20 @@ FLUTTER_EXPORT FlutterDesktopViewRef FlutterDesktopViewCreateFromElmParent(
152152 FlutterDesktopEngineRef engine ,
153153 void * parent );
154154
155+ // Destroys the view.
156+ //
157+ // The engine owned by the view will also be shut down implicitly.
158+ // @warning This API is a work-in-progress and may change.
159+ FLUTTER_EXPORT void FlutterDesktopViewDestroy (FlutterDesktopViewRef view );
160+
155161// Returns a handle to evas object that the FlutterView is drawn to.
156162//
157163// Cast the returned void* to Evas_Object*.
158164// @warning This API is a work-in-progress and may change.
159165FLUTTER_EXPORT void * FlutterDesktopViewGetEvasObject (
160166 FlutterDesktopViewRef view );
161167
162- // Resize the FlutterView .
168+ // Resizes the view .
163169// @warning This API is a work-in-progress and may change.
164170FLUTTER_EXPORT void FlutterDesktopViewResize (FlutterDesktopViewRef view ,
165171 int32_t width ,
You can’t perform that action at this time.
0 commit comments