.findResource(withID:)
Summary
The TypedKeymanPackage.findResource(withID:)
method allows direct lookup of a resource's metadata.
Syntax
TypedKeymanPackage.findResource(withID:) -> TypedLanguageResource?
Parameters
withID: TypedLanguageResource.FullID
- The unique identifier for the desired keyboard or lexical model and target language.
Value
-
An
InstallableKeyboard
(for aKeyboardKeymanPackage
) orInstallableLexicalModel
(for aLexicalModelKeymanPackage
). -
May be
nil
if no resource matching the specified ID is found within the package.
History
Added in Keyman Engine for iPhone and iPad 14.0.
See also
-
installables: [[ TypedLanguageResource ]]
- Returns a list of all resources & language pairings supported by this package.
-
installables(forLanguage: String): [ TypedLanguageResource ]
- Provides the same functionality as the field above, but filtered to a specific language code.