PackageManager.getPackage

Looks up a specific package.

Looks up a package matching the given version/path in the set of registered packages. The lookup order is done according the the usual rules (see getPackageIterator).

Parameters

name string

The name of the package

ver Version

The exact version of the package to query

path NativePath

An exact path that the package must reside in. Note that the package must still be registered in the package manager.

Return Value

Type: Package

The matching package or null if no match was found.

Meta