2021-09-29 20:09:02 +08:00
|
|
|
<a style="float:right;font-size:12px;" href="http://github.com/danielsogl/awesome-cordova-plugins/edit/master/src/@awesome-cordova-plugins/plugins/android-notch/index.ts#L1">
|
|
|
|
Improve this doc
|
|
|
|
</a>
|
|
|
|
|
|
|
|
# Android Notch
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ionic cordova plugin add cordova-plugin-android-notch
|
|
|
|
$ npm install @ionic-native/plugins/android-notch
|
|
|
|
```
|
|
|
|
|
|
|
|
## [Usage Documentation](https://ionicframework.com/docs/native/android-notch/)
|
|
|
|
|
|
|
|
Plugin Repo: [https://github.com/tobspr/cordova-plugin-android-notch.git](https://github.com/tobspr/cordova-plugin-android-notch.git)
|
|
|
|
|
|
|
|
This plugin enables developers to get the cutout and android devices inset sizes
|
|
|
|
It is based on the cordova plugin developed by @tobspr: https://github.com/tobspr/cordova-plugin-android-notch
|
|
|
|
This plugin works on all android versions, but we can only detect notches starting from Android 9.
|
|
|
|
|
|
|
|
## Supported platforms
|
|
|
|
|
|
|
|
- Android
|
2021-09-29 20:38:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|