0.3.1 • Published 4 months ago

@totalpave/cordova-plugin-insets v0.3.1

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
4 months ago

cordova-plugin-insets

This plugin provides access to Android's native unsafe area insets. Normally these insets are accessed through the CSS env variables, unsafe-area-inset- (where is top, right, bottom, or left).

These env variables are recognized by Android's webviews but are not properly implemented. They always resolve to 0.

This plugin provides a work around to obtain these values in javascript. You will have to implement your own javascript code to actually start using these values in your CSS.

Supported Platforms

Android.

If your app suppots multiple platforms, the API calls to this plugin should be platform guarded.

if (cordova.platform === 'android') {
    let insets = await window.totalpave.Inset.create();
}

Documentation

See Docs

Licenses

This plugin is licensed under Apache 2.0. See LICENSE for more information.

0.3.1

4 months ago

0.3.0

4 months ago

0.2.0

5 months ago

0.1.10

6 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.9

10 months ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago