thirdparty_keyboard_checker

Creator: coderz1093

Last updated:

0 purchases

thirdparty_keyboard_checker Image
thirdparty_keyboard_checker Images

Languages

Categories

Add to Cart

Description:

thirdparty keyboard checker

thirdparty_keyboard_checker #

Check the application using a 3rd-party keyboard on Android. Implement a simple function to disable 3rd-party keyboards for iOS.
Getting Started #
It is really easy to use! You should ensure that you add the thirdparty_keyboard_checker as a dependency in your flutter project.
thirdparty_keyboard_checker: "^1.0.0"
copied to clipboard
Usage #
New instance
final _thirdPartyKeyboardChecker = ThirdPartyKeyboardChecker.instance;
copied to clipboard
Android
final is3rdKeyboard = await _thirdPartyKeyboardChecker.check3rdKeyboard();
if (is3rdKeyboard) {
showDialog('Your application is using a 3rd-party keyboard');
}
copied to clipboard
iOS
Add this code in your AppDelegate.swift

Swift 5

override func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool {
return extensionPointIdentifier != UIApplication.ExtensionPointIdentifier.keyboard
}
copied to clipboard

Swift 4.2

override func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool {
return !extensionPointIdentifier == UIApplication.ExtensionPointIdentifier.keyboard
}
copied to clipboard

Swift 4

override func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplicationExtensionPointIdentifier) -> Bool {
return !extensionPointIdentifier == UIApplicationExtensionPointIdentifier.keyboard
}
copied to clipboard

Swift 3

override func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplicationExtensionPointIdentifier) -> Bool {
return !extensionPointIdentifier == UIApplicationExtensionPointIdentifier.keyboard
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.