HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/.codex/.tmp/plugins/plugins/zoom/skills/video-sdk/ios/concepts/lifecycle-workflow.md
# iOS Lifecycle Workflow

```mermaid
flowchart TD
  A[Request token] --> B[SDK init]
  B --> C[Register delegates]
  C --> D[Join session]
  D --> E[Start/stop local media]
  E --> F[Render remote state from events]
  F --> G[Leave and cleanup]
```

## Operational sequence

1. Request token from backend.
2. Initialize Video SDK and attach delegates.
3. Join session with session name/topic and display name.
4. Start local media after join success callback.
5. Handle participant and media callbacks as the source of truth.
6. Cleanup delegates and session resources on exit.