ExpandingAttributionButton
Info button from which an attribution popup text is expanded. This version retracts when the user interacts with the map.
Parameters
Used to dismiss the attribution when the user interacts with the map.
Used to get the attribution links to display.
Will be used to determine layout of the attribution icon and text.
Composable that defines the button used to toggle the attribution display. Takes an onClick function parameter that should be called to switch states.
Composable that defines how the attribution content is displayed when expanded. Takes a list of HTML strings as a parameter.
Style of the attribution Surface when it is expanded
Style of the attribution Surface when it is collapsed
Function that returns an EnterTransition for the expanding animation based on the given alignment
Function that returns an ExitTransition for the collapsing animation based on the given alignment
Info button from which an attribution popup text is expanded. This version allows the caller to manage the state.
Parameters
Whether the attribution text is expanded.
Called when the button is pressed. Should toggle the expanded state.
Used to get the attribution links to display.
Will be used to determine layout of the attribution icon and text.
Composable that defines the button used to toggle the attribution display. Takes an onClick function parameter that should be called to switch states.
Composable that defines how the attribution content is displayed when expanded. Takes a list of HTML strings as a parameter.
Style of the attribution Surface when it is expanded
Style of the attribution Surface when it is collapsed
Function that returns an EnterTransition for the expanding animation based on the given alignment
Function that returns an ExitTransition for the collapsing animation based on the given alignment