Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0 (current version)Version 16.0Version 15.0Version 14.0

On this page

You are viewing an old version of this documentation. Click here to open the current version, 18.0.

.pageURL(for:)

Summary

The KeymanPackage.pageURL(for: KeymanPackagePage) method provides links to web pages contained within a package.

Syntax

KeymanPackage.pageURL(for: KeymanPackagePage) -> URL?

Parameters

for: KeymanPackagePage
An enum representing the type of page to retrieve.

Supported pages: .readme, .welcome, .custom(bundledPath: String), the latter of which may target arbitrary locations within the package.

May return nil if the corresponding file does not exist.

Value

A URL that may be used to display the page within a WKWebView or similar module.

History

Added in Keyman Engine for iPhone and iPad 14.0.

See also

PackageWebViewController
Used to display web pages contained within a package.