setUserId

actual fun setUserId(userId: String)(source)
expect fun setUserId(userId: String)(source)

Records a user ID (identifier) that's associated with subsequent fatal, non-fatal, and ANR reports.

The user ID is visible in the session view on the Firebase Crashlytics console.

Identifiers longer than 1024 characters will be truncated.

Parameters

userId

a unique identifier for the current user

actual fun setUserId(userId: String)(source)