{"id":19260930,"url":"https://github.com/evant/compose-shown","last_synced_at":"2025-04-21T17:30:33.048Z","repository":{"id":144875440,"uuid":"363795863","full_name":"evant/compose-shown","owner":"evant","description":"Provides a callback for when a @Composable is shown to the user","archived":false,"fork":false,"pushed_at":"2023-06-21T22:41:12.000Z","size":100,"stargazers_count":66,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-01T14:45:52.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-03T02:19:22.000Z","updated_at":"2024-10-11T22:40:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e44b453a-8780-4f15-8807-02bcaf76b28f","html_url":"https://github.com/evant/compose-shown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fcompose-shown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fcompose-shown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fcompose-shown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fcompose-shown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evant","download_url":"https://codeload.github.com/evant/compose-shown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250100147,"owners_count":21374880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T19:23:31.985Z","updated_at":"2025-04-21T17:30:33.044Z","avatar_url":"https://github.com/evant.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compose-Shown\n\nProvides a callback for when a `@Composable` is shown to the user. This can be useful for 'pageview'\nanalytics. It will re-fire when the activity is paused and resumed and _not_ re-fire on rotation.\n\n## Usage\n\nSimply add the `onShown` modifier to the composable you want to track.\n\n```kotlin\nText(\"Hello\", modifier = Modifier.onShown {\n    // fire pageview analytics event\n})\n```\n\nYou can also optionally pass keys, this will cause it to re-fire when the key changes. Say, for\nexample, you want to re-send when the search query changes.\n\n```kotlin\nSearchResults(modifier = Modifier.onShown(query) {\n    // fire when shown and when the query changes.                                                 \n}, results)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevant%2Fcompose-shown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevant%2Fcompose-shown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevant%2Fcompose-shown/lists"}