# SDK Status

<img alt="Capture SDK Support" src="https://img.shields.io/badge/Android-0.23.0-006C9C">
<img alt="Capture SDK Support" src="https://img.shields.io/badge/iOS-0.23.0-006C9C">

The `getSdkStatus()` API returns a point-in-time snapshot of the SDK's operational status, including initialization state, last handshake time, and last config delivery time.

## Initialization State

The initialization state can be one of:

| State | Description |
|-------|-------------|
| `NotStarted` | The SDK has not been started yet. |
| `Loaded` | The SDK library has been loaded but log processing has not yet begun. |
| `Running` | The SDK is fully running and processing logs. |
| `Disabled` | The SDK has been force-disabled by the server (e.g., authentication failure). |

## Usage

=== "Android (Kotlin)"

    ```kotlin
    val status = Logger.getSdkStatus()
    // status.initializationState - NOT_STARTED, LOADED, RUNNING, or DISABLED
    // status.lastHandshakeTimeMs - epoch millis or null
    // status.lastConfigDeliveryTimeMs - epoch millis or null
    ```

=== "iOS (Swift)"

    ```swift
    let status = Logger.getSdkStatus()
    // status.initializationState - .notStarted, .loaded, .running, or .disabled
    // status.lastHandshakeTime - Date? or nil
    // status.lastConfigDeliveryTime - Date? or nil
    ```
