Skip to content

Commit

Permalink
📚 [Docs] Add note about play event in api.md (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi authored Jan 27, 2024
1 parent 272c601 commit fb3fa76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ manager.activeEvents;
// “unlocked” right away.
(event: 'state', listener: (current: ManagerState) => void)

// Event called whenever `manager.playing` switches from
// `true -> false` (and vice-versa). Useful for when you
// just want to be notified whenever that value changes.
(event: 'play', listener: (active: boolean) => void)

// Event called whenever the `keys` property changes. This is useful
// to subscribe to changes in the internal “stack library”.
(event: 'library', listener: (newKeys: StackId[], oldKeys: StackId[]) => void)
Expand Down

0 comments on commit fb3fa76

Please sign in to comment.