官术网_书友最值得收藏!

Summary

In order to manage application resources, one must have a deeper understanding of the application lifecycle. Application lifecycle events, outlined in this chapter, are the main access points to underlying platform runtime on both iOS and Android. If used properly, the event delegates and event methods on both platforms can help developers save valuable resources and avoid memory problems.

Other concepts discussed were garbage collection, object references, and automatic reference counting. These concepts make up the foundation of memory management on target Xamarin platforms.

We also had a closer look at the diagnostic and profiling tools for target platforms and how they can be used effectively. While iOS and Android platforms each have a native app to analyze memory allocations, Xamarin Profiler provides a unified solution for both platforms.

Finally, useful patterns were outlined for different memory related issues and pitfalls. To analyze these patterns, Xamarin Profiler and Instruments were used for Android and iOS applications respectively.

In the next chapter, we will be looking at asynchronous implementation techniques and investigate various patterns of multi-threading and background execution.

主站蜘蛛池模板: 宁化县| 华蓥市| 贵定县| 宜城市| 钟祥市| 奇台县| 类乌齐县| 永德县| 崇阳县| 泸水县| 南安市| 六盘水市| 清苑县| 甘孜县| 万年县| 文化| 安龙县| 龙山县| 年辖:市辖区| 怀化市| 麻栗坡县| 滦南县| 安陆市| 定南县| 揭阳市| 白玉县| 许昌市| 象州县| 蓬安县| 柳州市| 南丰县| 厦门市| 平舆县| 扶风县| 湟中县| 万山特区| 醴陵市| 宜昌市| 乌兰浩特市| 宿松县| 潞城市|