{"_id":"5ac4c16abf58d30028807d1c","category":{"_id":"5ac4c169bf58d30028807d0e","version":"5ac4c169bf58d30028807d0b","project":"56e6e8b9cec7530e006a7133","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-09-08T06:58:23.956Z","from_sync":false,"order":2,"slug":"buzzsdkdelegate-protocol-reference","title":"BuzzSDKDelegate Protocol Reference"},"project":"56e6e8b9cec7530e006a7133","user":"56e6d120f3b12a3200df21ba","version":{"_id":"5ac4c169bf58d30028807d0b","project":"56e6e8b9cec7530e006a7133","__v":1,"createdAt":"2018-04-04T12:13:29.767Z","releaseDate":"2018-04-04T12:13:29.767Z","categories":["5ac4c169bf58d30028807d0c","5ac4c169bf58d30028807d0d","5ac4c169bf58d30028807d0e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.4.0","version":"2.4.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-08T14:52:07.983Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":13,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"- (void)buzzSDKStateHasChanged:(BuzzSDKState)state\",\n      \"language\": \"objectivec\"\n    },\n    {\n      \"code\": \"func buzzSDKStateHasChanged(_ state: BuzzSDKState)\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]\n**Discussion**\nNotifies the delegate of a state change on the _BuzzSDK_. When started the _BussSDK_ state is always `BuzzSDKStateNone`.\n\nThe states are:\n- `BuzzSDKStateNone`: The _BuzzSDK_ has been initialised, but the configuration not loaded and its UI hierarchy is not set.\n- `BuzzSDKStatePreparing`: The _BuzzSDK_ is fetching configuration from backend in preparation for presentation. This state is triggered after calling [`presentDeck`](doc:presentDeck) while in  `BuzzSDKStateNone` state.\n- `BuzzSDKStatePrepared`: The _BuzzSDK_ configuration has been fetched, and content has started to load, the UI Hierarchy is not yet set and no content is currently being presented.\n- `BuzzSDKStatePresenting`: The _BuzzSDK_ UI Hierarchy is set, and content is currently being presented.\n- `BuzzSDKStateHiddenByHostApp`: The _BuzzSDK_ UI Hierarchy is set, content is displayed but currently hidden by host app request. User can not manually show it again but host app can by calling [`presentDeck`](doc:presentdeck) class method.\n- `BuzzSDKStateHiddenByUser`: The _BuzzSDK_ UI Hierarchy is set, content is displayed but currently hidden by user request. A `Show Videos` buttons is displayed so user can show the UI again on request.","excerpt":"","slug":"buzzsdkstatehaschanged","type":"basic","title":"buzzSDKStateHasChanged:"}

buzzSDKStateHasChanged:


[block:code] { "codes": [ { "code": "- (void)buzzSDKStateHasChanged:(BuzzSDKState)state", "language": "objectivec" }, { "code": "func buzzSDKStateHasChanged(_ state: BuzzSDKState)", "language": "swift" } ] } [/block] **Discussion** Notifies the delegate of a state change on the _BuzzSDK_. When started the _BussSDK_ state is always `BuzzSDKStateNone`. The states are: - `BuzzSDKStateNone`: The _BuzzSDK_ has been initialised, but the configuration not loaded and its UI hierarchy is not set. - `BuzzSDKStatePreparing`: The _BuzzSDK_ is fetching configuration from backend in preparation for presentation. This state is triggered after calling [`presentDeck`](doc:presentDeck) while in `BuzzSDKStateNone` state. - `BuzzSDKStatePrepared`: The _BuzzSDK_ configuration has been fetched, and content has started to load, the UI Hierarchy is not yet set and no content is currently being presented. - `BuzzSDKStatePresenting`: The _BuzzSDK_ UI Hierarchy is set, and content is currently being presented. - `BuzzSDKStateHiddenByHostApp`: The _BuzzSDK_ UI Hierarchy is set, content is displayed but currently hidden by host app request. User can not manually show it again but host app can by calling [`presentDeck`](doc:presentdeck) class method. - `BuzzSDKStateHiddenByUser`: The _BuzzSDK_ UI Hierarchy is set, content is displayed but currently hidden by user request. A `Show Videos` buttons is displayed so user can show the UI again on request.