GithubHelp home page GithubHelp logo

kevinnzou / compose-webview-accompanist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/accompanist

16.0 1.0 5.0 40.05 MB

A wrapper of WebView for Jetpack Compose

Home Page: https://google.github.io/accompanist

License: Apache License 2.0

Shell 10.29% Kotlin 87.34% HTML 2.36%
accompanist android jetpack-compose web webview

compose-webview-accompanist's Introduction

WebView wrapper for Jetpack Compose

Note This library has been migrated to compose-webview to independent from the accompanist library.

Maven Central badge-android

According to the official documentation updated on August 2023, Jetpack Compose Accompanist library decided to deprecate the Web library with no replacement. However, as a contributor to this library, I am still relying on it to provide WebView support in my App. Thus, I decided to fork that library and make future updates on it. This is a fork of the original library with the latest version 0.33.1-alpha.

For more information, visit the documentation: https://google.github.io/accompanist/web/

Basic Usage

To implement this wrapper there are two key APIs which are needed: WebView, which provides the layout, and rememberWebViewState(url) which provides some remembered state including the URL to display.

The basic usage is as follows:

val state = rememberWebViewState("https://example.com")

WebView(state)

This will display a WebView in your Compose layout that shows the URL provided.

Download

Maven Central

repositories {
    mavenCentral()
}

dependencies {
    implementation "io.github.KevinnZou:compose-webview:0.33.3"
}

License

Compose WebView is distributed under the terms of the Apache License (Version 2.0). See the license for more information.

compose-webview-accompanist's People

Contributors

alexvanyo avatar andkulikov avatar arkon avatar bentrengrove avatar captnblubber avatar ch4rl3x avatar chachako avatar chrisbanes avatar fornewid avatar ianhanniballake avatar jbw0033 avatar josealcerreca avatar jossiwolf avatar kevinnzou avatar khalp avatar ln-12 avatar maxmichel2 avatar mxalbert1996 avatar nicbell avatar nickbutcher avatar oas004 avatar probot-auto-merge[bot] avatar riggaroo avatar rlatapy-luna avatar sampengilly avatar svenjacobs avatar uchennafokoye avatar whitescent avatar xiaozhikang0916 avatar yschimke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.