mcbopomofoweb
    Preparing search index...

    Helps to manage the dictionary service

    Index

    Constructors

    Properties

    localizedStrings: LocalizedStrings
    onOpenUrl?: (input: string) => void
    services: DictionaryService[] = []

    Methods

    • Builds a menu by generating text items from all available dictionary services for a given phrase.

      Parameters

      • phrase: string

        The input phrase to look up in the dictionary services

      Returns string[]

      An array of strings representing menu items for the phrase lookup results

    • Performs a dictionary lookup using the specified service at the given index.

      Parameters

      • phrase: string

        The text string to look up in the dictionary

      • index: number

        The index of the dictionary service to use

      • state: InputState

        The current input state

      • stateCallback: (state: InputState) => void

        Callback function to handle state updates

      Returns boolean

      True if lookup was performed, false if index is out of bounds