New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-keyboard-language

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-keyboard-language

Capacitor plugin for detect current keyboard language

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

capacitor-keyboard-language

Capacitor plugin for detecting the current keyboard language.

Install

npm install capacitor-keyboard-language
npx cap sync

API

Methods:
  • getKeyboardLanguage: Returns the current keyboard language.
  • addListener(eventName: 'keyboardLanguageChange', listenerFunc: (info: { language: string }) => void): Adds a listener for keyboard language changes.
  • removeAllListeners: Removes all listeners.

Example usage in an Ionic Angular application:

import { Component } from '@angular/core';
import { KeyboardLanguage } from 'capacitor-keyboard-language';

@Component({
  selector: 'app-example',
  standalone: true,
  templateUrl: './example.component.html',
  styleUrls: ['./example.component.css'],
  providers: [KeyboardLanguage],
})
export class ExampleComponent {
  constructor(private plugin: KeyboardLanguage) {}

  ngOnInit() {
    this.getKeyboardLanguage();
    this.plugin.addListener('keyboardLanguageChange', ({ language }) => {
      console.log('Keyboard language changed to: ', language);
    });
  }

  async getKeyboardLanguage() {
    const language = await this.plugin.getKeyboardLanguage();
    console.log('Current keyboard language: ', language);
  }
}

Keywords

FAQs

Package last updated on 23 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc