public override void OnDestroy(WidgetDestroyType reason, Bundle content)
 {
     base.OnDestroy(reason, content);
     Platform.GetRenderer(_application?.MainPage)?.Dispose();
 }
Example #2
0
 /// <summary>
 /// Overrides this method if want to handle the behavior when the widget instance is destroyed.
 /// </summary>
 /// <param name="reason">The reason for destruction.</param>
 /// <param name="content">The data set to save.</param>
 /// <since_tizen> 3 </since_tizen>
 public virtual void OnDestroy(WidgetDestroyType reason, Bundle content)
 {
 }