Contact Center SDK for iOS API reference
Loading...
Searching...
No Matches
<ZoomCCAppLifecyleDelegate> Protocol Reference

An interface for forwarding host application life-cycle transitions to the SDK. More...

#include <ZoomCCInterface.h>

Inheritance diagram for <ZoomCCAppLifecyleDelegate>:
ZoomCCInterface

Instance Methods

(void) - appWillResignActive
 Notifies the common layer that the host application is about to resign the active state.
(void) - appDidBecomeActive
 Notifies the common layer that the host application became active.
(void) - appDidEnterBackgroud
 Notifies the common layer that the host application entered the background.
(void) - appWillTerminate
 Notifies the common layer that the host application is about to terminate.

Detailed Description

An interface for forwarding host application life-cycle transitions to the SDK.

Discussion:
These methods are SDK forwarding APIs, not UIApplicationDelegate or UISceneDelegate callbacks. For an app that does not use scenes, forward the corresponding UIApplicationDelegate callbacks. For a scene-based app, forward the corresponding UISceneDelegate callbacks instead.

The SDK facade is a singleton and these callbacks represent the host application's aggregate life-cycle state. In a multi-scene app, call these methods only when the aggregate application state changes; do not forward every individual scene transition. Do not forward the same transition from both UIApplicationDelegate and UISceneDelegate.

Method Documentation

◆ appDidBecomeActive

- (void) appDidBecomeActive

Notifies the common layer that the host application became active.

Discussion:
For an app-delegate life cycle, call this method from applicationDidBecomeActive:. For a scene-based life cycle, call it from sceneDidBecomeActive:. Forward the event after UIKit invokes the host callback. Do not call it from both delegates for the same transition.

◆ appDidEnterBackgroud

- (void) appDidEnterBackgroud

Notifies the common layer that the host application entered the background.

Discussion:
For an app-delegate life cycle, call this method from applicationDidEnterBackground:. For a scene-based life cycle, call it from sceneDidEnterBackground:. Forward the event after UIKit invokes the host callback. Do not call it from both delegates for the same transition.

The selector name appDidEnterBackgroud is retained for API compatibility; "Backgroud" is a historical spelling of "Background".

◆ appWillResignActive

- (void) appWillResignActive

Notifies the common layer that the host application is about to resign the active state.

Discussion:
For an app-delegate life cycle, call this method from applicationWillResignActive:. For a scene-based life cycle, call it from sceneWillResignActive:. Forward the event after UIKit invokes the host callback. Do not call it from both delegates for the same transition.

◆ appWillTerminate

- (void) appWillTerminate

Notifies the common layer that the host application is about to terminate.

Discussion:
If UIKit delivers applicationWillTerminate:, call this method from that callback. Termination callbacks are not guaranteed when an app is suspended or is quit by the user, so do not rely on this method for required persistence or cleanup. There is no per-scene equivalent; a scene disconnect must not be treated as application termination.

The documentation for this protocol was generated from the following file: