{"_id":"57b96d6b1d08500e00bf81de","parentDoc":null,"category":{"_id":"57b96d6b1d08500e00bf81d3","project":"54861bb654b3ce0b00367292","version":"57b96d6b1d08500e00bf81d1","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-08T21:55:25.679Z","from_sync":false,"order":1,"slug":"1-setup","title":"iOS / App Triggers"},"user":"54861b9f3681d914006992a4","__v":1,"project":"54861bb654b3ce0b00367292","version":{"_id":"57b96d6b1d08500e00bf81d1","__v":7,"project":"54861bb654b3ce0b00367292","createdAt":"2016-08-21T08:59:23.326Z","releaseDate":"2016-08-21T08:59:23.326Z","categories":["57b96d6b1d08500e00bf81d2","57b96d6b1d08500e00bf81d3","57b96d6b1d08500e00bf81d4","57b96d6b1d08500e00bf81d5","57b96d6b1d08500e00bf81d6","57b96d6b1d08500e00bf81d7","57b96d6b1d08500e00bf81d8","57b96d6b1d08500e00bf81d9","57b96d6b1d08500e00bf81da","57b96d6b1d08500e00bf81db","57b96d6b1d08500e00bf81dc","57b97748306b9b0e001dd53f","57d12c6c1227b40e0044908a","57d51ad68191880e008bb51b","57d52b5cf350090e00fe073e","57d5468a17b492170053a3f0","57df9df05927cb0e002bce1e"],"is_deprecated":true,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"4.0.0","version":"4.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-16T13:38:22.829Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":7,"body":"BackView experiences allow you to control the app-switcher look and feel\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Main section\"\n}\n[/block]\nDefine the experience that would take place when the app runs in the background\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Specific sections\"\n}\n[/block]\nHere you can change and control different sections (a specific screen, for instance, could be considered a section).\n\n**Define the backView section**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"[params.data defineBackViewSection::::at:::\\\"section1\\\"];\",\n      \"language\": \"objectivec\"\n    },\n    {\n      \"code\": \"params.data .defineBackViewSection(\\\"section1\\\")\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]\n\n**Indicate that a section has started** \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// declaring the section has began\\n[ElastiCode beginBackViewSection:@\\\"section1\\\"];\",\n      \"language\": \"objectivec\"\n    },\n    {\n      \"code\": \"// declaring the section has began\\nElastiCode .beginBackViewSection(\\\"section1\\\")\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]\n**Indicate that a section has ended** \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// declaring the current section ended (back to main section)\\n[ElastiCode endBackViewSection];\",\n      \"language\": \"objectivec\"\n    },\n    {\n      \"code\": \"// declaring the current section ended (back to main section)\\nElastiCode .endBackViewSection()\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]","excerpt":"Control the app switcher view","slug":"backview","type":"basic","title":"BackView sections"}

BackView sections

Control the app switcher view

BackView experiences allow you to control the app-switcher look and feel [block:api-header] { "type": "basic", "title": "Main section" } [/block] Define the experience that would take place when the app runs in the background [block:api-header] { "type": "basic", "title": "Specific sections" } [/block] Here you can change and control different sections (a specific screen, for instance, could be considered a section). **Define the backView section** [block:code] { "codes": [ { "code": "[params.data defineBackViewSection:@\"section1\"];", "language": "objectivec" }, { "code": "params.data .defineBackViewSection(\"section1\")", "language": "swift" } ] } [/block] **Indicate that a section has started** [block:code] { "codes": [ { "code": "// declaring the section has began\n[ElastiCode beginBackViewSection:@\"section1\"];", "language": "objectivec" }, { "code": "// declaring the section has began\nElastiCode .beginBackViewSection(\"section1\")", "language": "swift" } ] } [/block] **Indicate that a section has ended** [block:code] { "codes": [ { "code": "// declaring the current section ended (back to main section)\n[ElastiCode endBackViewSection];", "language": "objectivec" }, { "code": "// declaring the current section ended (back to main section)\nElastiCode .endBackViewSection()", "language": "swift" } ] } [/block]