{"id":22938739,"url":"https://github.com/satoshun/rxwebview","last_synced_at":"2025-08-12T18:33:54.580Z","repository":{"id":57722612,"uuid":"74462316","full_name":"satoshun/RxWebView","owner":"satoshun","description":"RxJava2 binding APIs for Android's WebView","archived":false,"fork":false,"pushed_at":"2019-02-09T10:26:36.000Z","size":435,"stargazers_count":21,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-01T22:39:10.992Z","etag":null,"topics":["android","java","kotlin","rxjava","rxjava2","webview"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/satoshun.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}},"created_at":"2016-11-22T10:40:01.000Z","updated_at":"2023-03-25T05:45:52.000Z","dependencies_parsed_at":"2022-09-14T01:14:29.643Z","dependency_job_id":null,"html_url":"https://github.com/satoshun/RxWebView","commit_stats":null,"previous_names":[],"tags_count":12,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoshun%2FRxWebView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoshun%2FRxWebView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoshun%2FRxWebView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoshun%2FRxWebView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satoshun","download_url":"https://codeload.github.com/satoshun/RxWebView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229703454,"owners_count":18110551,"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":["android","java","kotlin","rxjava","rxjava2","webview"],"created_at":"2024-12-14T12:27:58.141Z","updated_at":"2024-12-14T12:27:58.704Z","avatar_url":"https://github.com/satoshun.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.satoshun.RxWebView/rxwebview/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.satoshun.RxWebView/rxwebview)\n[![CircleCI](https://circleci.com/gh/satoshun/RxWebView.svg?style=svg)](https://circleci.com/gh/satoshun/RxWebView)\n[![codecov](https://codecov.io/gh/satoshun/RxWebView/branch/master/graph/badge.svg)](https://codecov.io/gh/satoshun/RxWebView)\n\n# RxWebView\n\nRxJava2 binding APIs for Android WebView with Kotlin.\n\n## install\n\n```groovy\nimplementation \"com.github.satoshun.RxWebView:rxwebview:${latest-version}\"\n```\n\n## usage\n\n### WebViewClient\n\nIf you want a all events from [WebViewClient](https://developer.android.com/reference/android/webkit/WebViewClient),\nwe can use a `RxWebViewClient#events` method.\n\n```kotlin\nval webview = WebView(context)\nwebview.events().subscribe() // emits all WebView eventss\n```\n\nIf you want a specific event like a `onPageFinished`,\nwe can use a `RxWebViewClient#events` + `ofType` operator.\n\n```kotlin\nval webview = WebView(context)\nwebView.events()\n    .ofType(OnPageFinished::class.java) // only OnPageFinished\n    .subscribe()\n```\n\nIf you want to a hook events from `WebViewClient`, we can give a custom WebViewClient.\n\n```kotlin\nwebview.events(delegate = CustomWebViewClient()).subscribe()\n```\n\nAll data type defined in [this](rxwebview/src/main/java/com/github/satoshun/reactivex/webkit/data/RxWebViewClientData.kt).\n\n### WebChromeClient\n\nIf you want a all events from [WebChromeClient](https://developer.android.com/reference/android/webkit/WebChromeClient).\n\n```kotlin\nval webview = WebView(context)\nwebview.chromeEvents().subscribe()\n```\n\nIf you want to a hook events from `WebChromeClient`, we can give a custom WebChromeClient.\n\n```kotlin\nwebview.chromeEvents(delegate = customWebChromeClient).subscribe()\n```\n\nAll data type defined in [this](rxwebview/src/main/java/com/github/satoshun/reactivex/webkit/data/RxWebChromeClientData.kt)\n\n## more information\n\n- [Kotlin sample source code](app/src/main/java/com/github/satoshun/reactivex/webkit/example)\n- [Java sample source code](app-java/src/main/java/com/github/satoshun/reactivex/webkit/example)\n\n## etc\n\nThis project inspired by [RxBinding](https://github.com/JakeWharton/RxBinding). It was very helpful. thx!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatoshun%2Frxwebview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatoshun%2Frxwebview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatoshun%2Frxwebview/lists"}