Giter Site home page Giter Site logo

start9labs / capacitor-webview-overlay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teammaestro/capacitor-webview-overlay

0.0 1.0 0.0 667 KB

Ruby 1.84% Java 30.89% Objective-C 1.78% Swift 30.96% JavaScript 0.41% TypeScript 25.59% HTML 3.66% CSS 4.88%

capacitor-webview-overlay's Introduction

Capacitor Webview Overlay Plugin

npm

Capacitor plugin to overlay native webviews on top of your app. Supports iOS and Android.

Installation

npm i @teamhive/capacitor-webview-overlay

Android

To use the pluign on Android, you must register it in MainActivity.java.

// Other imports...
import com.webviewOverlay.plugin.WebviewOverlayPlugin;

public class MainActivity extends BridgeActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Initializes the Bridge
        this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
            // Additional plugins you've installed go here
            add(WebviewOverlayPlugin.class);
        }});
    }
}

iOS

No additional configutation needed.

Web/PWA

No implementation provided.

Usage

This plugin uses a custom Javascript frontend, so each instance of the WebviewOverlay class will control a separate webview. The plugin requires an empty HTML element to determine the position and dimensions of the webview. This element is also used to display a screen capture of the webview if you need to have any app UI elements overlay the webview at any time. See the example project for implementation.

capacitor-webview-overlay's People

Contributors

sbannigan avatar sean-perkins avatar triniwiz 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.