Skip to main content

chat-user-controller.observable-object-properties

controller

The underlying controller. You can still access it and call methods on it.

public let controller: ChatUserController

user

The user matching the userId.

@Published public private(set) var user: ChatUser?

state

The current state of the controller.

@Published public private(set) var state: DataController.State

Methods

userController(_:didUpdateUser:)

public func userController(
_ controller: ChatUserController,
didUpdateUser change: EntityChange<ChatUser>
)

controller(_:didChangeState:)

public func controller(_ controller: DataController, didChangeState state: DataController.State)

Did you find this page helpful?