UserEvent

interface UserEvent

Generic interface for custom events that can contain user behaviors. Mostly used by checks.

Inheritors

Properties

Link copied to clipboard
abstract val user: UserBehavior?

The user behavior for this event, if any.

Functions

Link copied to clipboard
abstract suspend fun getUser(): User

Get a User object, or throw if one can't be retrieved.

Link copied to clipboard
abstract suspend fun getUserOrNull(): User?

Get a User object, or return null if one can't be retrieved.