cordova-plugin-android-notch icon indicating copy to clipboard operation
cordova-plugin-android-notch copied to clipboard

Add isNotchSupportedMethod

Open SamueleDassatti opened this issue 5 years ago • 0 comments

This PR adds an isNotchSupported method to the AndroidNotch object that returns whether the phone API version is before or after 28. This makes it possible to know whether the getInset methods are returning 0 because there is no cutout or because the phone doesn't support that method.

Example

window.AndroidNotch.isNotchSupported(console.log)

SamueleDassatti avatar Apr 08 '20 14:04 SamueleDassatti