{"id":4003,"date":"2022-10-11T21:32:36","date_gmt":"2022-10-11T21:32:36","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=4003"},"modified":"2022-10-11T21:32:36","modified_gmt":"2022-10-11T21:32:36","slug":"xamarin-forms-lifecycle","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/xamarin-forms-lifecycle\/","title":{"rendered":"Xamarin.Forms lifecycle"},"content":{"rendered":"<p><em>Note: This post was written a while back but sat in draft. I&#8217;ve published this now, but I&#8217;m not sure it&#8217;s relevant to the latest versions etc. so please bear this in mind.<\/em><\/p>\n<p>The following is an example of what&#8217;s generated as part of the Xamarin.Forms project. <\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\npublic class App : Application\r\n{\r\n   protected override void OnStart()\r\n   {\r\n      \/\/ Handle when your app starts\r\n   }\r\n\r\n   protected override void OnSleep()\r\n   {\r\n      \/\/ Handle when your app sleeps\r\n   }\r\n\r\n   protected override void OnResume()\r\n   {\r\n      \/\/ Handle when your app resumes\r\n   }\r\n}\r\n<\/pre>\n<ul>\n<li><strong>OnStart<\/strong> is called when the application starts<\/li>\n<li><strong>OnSleep<\/strong> is called when the application goes into sleep mode and\/or terminates<\/li>\n<li><strong>OnResume<\/strong> is called when an application is resumed after a sleep<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Note: This post was written a while back but sat in draft. I&#8217;ve published this now, but I&#8217;m not sure it&#8217;s relevant to the latest versions etc. so please bear this in mind. The following is an example of what&#8217;s generated as part of the Xamarin.Forms project. public class App : Application { protected override [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[122],"tags":[],"class_list":["post-4003","post","type-post","status-publish","format-standard","hentry","category-xamarin-forms"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/4003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=4003"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/4003\/revisions"}],"predecessor-version":[{"id":9597,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/4003\/revisions\/9597"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=4003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=4003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=4003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}