{"_id":"588861fc165af631008ee21c","parentDoc":null,"project":"54861bb654b3ce0b00367292","version":{"_id":"588861fa165af631008ee1b8","__v":1,"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"},"__v":0,"category":{"_id":"588861fa165af631008ee1c0","project":"54861bb654b3ce0b00367292","__v":0,"version":"588861fa165af631008ee1b8","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-09-19T08:12:32.921Z","from_sync":false,"order":7,"slug":"cordova-app-triggers","title":"Cordova / App triggers"},"user":"548d74b716fc980b00e2a786","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-20T15:24:50.310Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":54,"body":"BackView experiences allow you to control the app-switcher look and feel\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"iOS only\",\n  \"body\": \"Currently available only in iOS app\"\n}\n[/block]\n\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(\\\"section1\\\");\",\n      \"language\": \"javascript\"\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\\nwindow.elasticode.beginBackViewSection(\\\"section1\\\")\",\n      \"language\": \"javascript\"\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)\\nwindow.elasticode.endBackViewSection()\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"Control the app switcher view","slug":"backview-sections","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:callout] { "type": "info", "title": "iOS only", "body": "Currently available only in iOS app" } [/block] [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": "javascript" } ] } [/block] **Indicate that a section has started** [block:code] { "codes": [ { "code": "// declaring the section has began\nwindow.elasticode.beginBackViewSection(\"section1\")", "language": "javascript" } ] } [/block] **Indicate that a section has ended** [block:code] { "codes": [ { "code": "// declaring the current section ended (back to main section)\nwindow.elasticode.endBackViewSection()", "language": "javascript" } ] } [/block]