cwt

CustomWebView for Android

Лицензия

Лицензия

Группа

Группа

io.github.kaustubhpatange
Идентификатор

Идентификатор

cwt
Последняя версия

Последняя версия

0.1.7
Дата

Дата

Тип

Тип

aar
Описание

Описание

cwt
CustomWebView for Android
Ссылка на сайт

Ссылка на сайт

https://github.com/KaustubhPatange/CustomWebviewTabs
Система контроля версий

Система контроля версий

https://github.com/KaustubhPatange/CustomWebviewTabs/tree/master

Скачать cwt

Имя Файла Размер
cwt-0.1.7.pom
cwt-0.1.7-sources.jar 10 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.github.kaustubhpatange/cwt/ -->
<dependency>
    <groupId>io.github.kaustubhpatange</groupId>
    <artifactId>cwt</artifactId>
    <version>0.1.7</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.kaustubhpatange/cwt/
implementation 'io.github.kaustubhpatange:cwt:0.1.7'
// https://jarcasting.com/artifacts/io.github.kaustubhpatange/cwt/
implementation ("io.github.kaustubhpatange:cwt:0.1.7")
'io.github.kaustubhpatange:cwt:aar:0.1.7'
<dependency org="io.github.kaustubhpatange" name="cwt" rev="0.1.7">
  <artifact name="cwt" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.github.kaustubhpatange', module='cwt', version='0.1.7')
)
libraryDependencies += "io.github.kaustubhpatange" % "cwt" % "0.1.7"
[io.github.kaustubhpatange/cwt "0.1.7"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
androidx.databinding » viewbinding jar 4.0.1

runtime (7)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-android-extensions-runtime jar 1.4.0
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.0
androidx.core » core-ktx jar 1.3.2
androidx.appcompat » appcompat jar 1.2.0
com.google.android.material » material jar 1.0.0
androidx.swiperefreshlayout » swiperefreshlayout jar 1.1.0
androidx.localbroadcastmanager » localbroadcastmanager jar 1.0.0

Модули Проекта

Данный проект не имеет модулей.

CustomWebviewTabs (CWT)

build Maven Central

CWT is an alternative for CustomTabs in Android without needing a service provider.

Internally it uses WebView to load pages (also supports private browsing).

Usage

  • Check sample project to see complete implementation of the library.
CWT.Builder(context)
    .onPageLoadListener { ... }
    .onPageLoadingListener { ... }
    .onWindowClosedListener { ... }
    .apply {
        /** Optionally set other settings (see below table) */

        // lookFeel.primaryColor = getColor(R.color.colorPrimary)
        // options.privateMode = true
    }
    .launch(urlString)
Parameter Task
lookFeel.primaryColor Changes view that uses primary color eg: Toolbar.
options.darkMode Enable rendering pages in dark mode (API >= 29).
options.privateMode Enable private browsing by not maintaining history and cookies.
options.lockToolbarScrolling Locks the toolbar on scroll so it won't hide.

Download

Library is available on MavenCentral().

implementation "io.github.kaustubhpatange:cwt:<version>"

License

Copyright 2020 Kaustubh Patange

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Версии библиотеки

Версия
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0