mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
31 lines
778 B
Markdown
31 lines
778 B
Markdown
---
|
|
title: .getInstalledPackage(for:)
|
|
---
|
|
|
|
## Summary
|
|
|
|
The **`getInstalledPackage<Resource: LanguageResource>()`** method is used to install resources from opened package files.
|
|
|
|
## Syntax
|
|
|
|
```swift
|
|
ResourceFileManager.shared.getInstalledPackage<Resource: LanguageResource>(for: Resource)
|
|
```
|
|
|
|
### Parameters
|
|
|
|
`for`
|
|
: Either a [`InstalledKeyboard`](../LanguageResource) or a [`InstalledLexicalModel`](../LanguageResource) that has been previously installed.
|
|
|
|
### Returns
|
|
|
|
The package, as currently installed. May return `nil` if the specified resource is not currently installed.
|
|
|
|
## History
|
|
|
|
- Added in Keyman Engine for iPhone and iPad 14.0.
|
|
|
|
## See also
|
|
|
|
- [`installedPackages: [KeymanPackage]`](installedPackages)
|
|
: Returns an array of all currently-installed packages.
|