{"_id":"59ccf56133dd99001a597c48","category":{"_id":"59ccf56133dd99001a597c3c","version":"59ccf56133dd99001a597c39","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":"59ccf56133dd99001a597c39","project":"56e6e8b9cec7530e006a7133","__v":1,"createdAt":"2017-09-28T13:13:05.846Z","releaseDate":"2017-09-28T13:13:05.846Z","categories":["59ccf56133dd99001a597c3a","59ccf56133dd99001a597c3b","59ccf56133dd99001a597c3c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.3.10","version":"1.3.10"},"__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_ is not loaded and its UI hierarchy is not set.\n- `BuzzSDKStatePrepared`: The _BuzzSDK_ Session has started, 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_ is not loaded and its UI hierarchy is not set. - `BuzzSDKStatePrepared`: The _BuzzSDK_ Session has started, 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.