Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

When to release app resources ? Page "On Destroy" ?

$
0
0

I use a 3rd party audio library (written in native C, for iOS and Android), which uses a lot of memory, e.g. for loading user soundfonts of 1GB or more.
In Android I have always called some "Close" methods of this lib in "onDestroy" of the MainActivity.

Is there a way in XF to "detect" when an app is "finished" (rather than just temporarly sent into background) by the OS in order to do cleanup action before, ie. release resources, free memory ?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>