Skip to content

docs: add KDoc for dispose() and rememberVideoPlayerState()#193

Merged
kdroidFilter merged 1 commit into
masterfrom
docs/dispose-documentation
Apr 11, 2026
Merged

docs: add KDoc for dispose() and rememberVideoPlayerState()#193
kdroidFilter merged 1 commit into
masterfrom
docs/dispose-documentation

Conversation

@kdroidFilter
Copy link
Copy Markdown
Owner

@kdroidFilter kdroidFilter commented Apr 11, 2026

Summary

  • Expand dispose() KDoc to explain it is called automatically by rememberVideoPlayerState() and only needs manual invocation when using createVideoPlayerState() outside a composable
  • Rewrite rememberVideoPlayerState() KDoc to clearly state it is the recommended approach with automatic cleanup via DisposableEffect
  • Add usage code examples to both methods

Closes #127

Test plan

  • Verify KDoc renders correctly in IDE (hover / quick doc)
  • Confirm ktlintCheck and detekt pass

Document that rememberVideoPlayerState() handles cleanup automatically
via DisposableEffect, and that dispose() only needs to be called
manually when using createVideoPlayerState() outside a composable.

Closes #127
@kdroidFilter kdroidFilter merged commit f2fe9c6 into master Apr 11, 2026
9 checks passed
@kdroidFilter kdroidFilter deleted the docs/dispose-documentation branch April 11, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation around dispose()

1 participant