Skip to content

Interface: UseActivityResult

@roomful/react


@roomful/react / UseActivityResult

Defined in: react/src/index.ts:363

Describes the return value of useActivity.

entries: ActivityEntry[]

Defined in: react/src/index.ts:367

The activity feed, newest first. Reactive: re-renders on any local or remote entry.


record: (type, data?) => ActivityEntry

Defined in: react/src/index.ts:372

Records an activity entry and broadcasts it to peers.

Records an activity entry and broadcasts it to peers.

string

The activity type label.

unknown

An optional structured payload.

ActivityEntry

The recorded entry.