# Entity ID

<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">

Sets an entity identifier for backend correlation with device identifier. The value is hashed for storage and the exact value is never persisted.

## Usage

=== "Android (Kotlin)"

    ```kotlin
    Logger.setEntityId("user-id-123")
    ```

=== "Android (Java)"

    ```java
    Logger.setEntityId("user-id-123");
    ```

=== "iOS (Swift)"

    ```swift
    Logger.setEntityID("user-id-123")
    ```

=== "iOS (Objective-C)"

    ```objective-c
    [CAPLogger setEntityID:@"user-id-123"];
    ```

!!! info
    This API was previously named `registerOpaqueEntityId` / `registerOpaqueEntityID` and was marked as experimental. It has been renamed and stabilized in 0.23.0.
