{"category":{"version":"588861fa165af631008ee1b8","project":"54861bb654b3ce0b00367292","_id":"588861fa165af631008ee1ba","__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"},"parentDoc":null,"project":"54861bb654b3ce0b00367292","user":"54861b9f3681d914006992a4","version":{"__v":1,"_id":"588861fa165af631008ee1b8","project":"54861bb654b3ce0b00367292","createdAt":"2017-01-25T08:29:46.061Z","releaseDate":"2017-01-25T08:29:46.061Z","categories":["588861fa165af631008ee1b9","588861fa165af631008ee1ba","588861fa165af631008ee1bb","588861fa165af631008ee1bc","588861fa165af631008ee1bd","588861fa165af631008ee1be","588861fa165af631008ee1bf","588861fa165af631008ee1c0","588861fa165af631008ee1c1","588861fa165af631008ee1c2","588861fa165af631008ee1c3","588861fa165af631008ee1c4","588861fa165af631008ee1c5","588861fa165af631008ee1c6","588861fa165af631008ee1c7","588861fa165af631008ee1c8","588861fa165af631008ee1c9"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.0.0","version":"5.0"},"_id":"588861fa165af631008ee1d6","__v":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":12,"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]