# cordova-plugin-notch

> Plugin detecting phone with screen cut outs

Latest version **1.0.6** (published 2019-02-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cordova-plugin-notch
pnpm add cordova-plugin-notch
yarn add cordova-plugin-notch
bun add cordova-plugin-notch
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-02-14 |
| First published | 2019-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Vuk Stankovic |
| Maintainers | vuk |
| Keywords | ecosystem:cordova, cordova-android, cordova-ios |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-notch
- Repository: https://github.com/vuk/cordova-plugin-notch
- Homepage: https://github.com/vuk/cordova-plugin-notch#readme
- Issues: https://github.com/vuk/cordova-plugin-notch/issues
- npm.io page: https://npm.io/package/cordova-plugin-notch

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2019-02-14
- 1.0.5 — 2019-02-14
- 1.0.4 — 2019-02-14
- 1.0.3 — 2019-02-14
- 1.0.2 — 2019-02-14
- 1.0.1 — 2019-02-14
- 1.0.0 — 2019-02-14

## README

# cordova-plugin-cutout

Detect if the device screen has cutout or notch

## Installation

`cordova plugin add cordova-plugin-cutout`

## Methods 

### has()

``` javascript
/** 
* Cutout plugin is added to global window object
* @name has
* @returns Promise<boolean>
*/
cutout.has();
```

## Support 

### Android 

Currently devices with Android P or newer are supported. For non supported devices, return value will be `false` even if the screen may have cutout.

### iOS 

Devices with iOS 11 or higher are supported. Calling this on older devices will just return `false` as no older iPhones have cutout.

## Usage in Ionic

There are not typedefs yet, so to use it with Ionic framework, do as follows 

```typescript
declare var cutout: any;

cutout.has()
  .then(result => console.log(result));
```

---
_Source: https://npm.io/package/cordova-plugin-notch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
