Function

MutableInteractionSource

Return a new MutableInteractionSource that can be hoisted and provided to components, allowing listening to Interaction changes inside those components.

MutableInteractionSource

Source set: Common
public fun MutableInteractionSource(): MutableInteractionSource

Return a new MutableInteractionSource that can be hoisted and provided to components, allowing listening to Interaction changes inside those components.

This should be remembered before it is provided to components, so it can maintain its state across compositions.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: