Registers a bundle event listener.
The listener or method name in scope.
Optionalscope: anyIf listener is a method name, then scope must have a method with this name.
Registers a framework event listener.
the listener or method name in scope.
Optionalscope: anyif listener is a method name, then scope must have a method with this name.
Registers a service event listener.
Optional filter expression to reduce the events the listener will receive.
The listener or method name in scope.
Optionalscope: anyIf listener is a method name, then scope must have a method with this name.
A handle which can be used to remove the listener.
Gets the bundle associated with this context.
Gets the bundle with the given id.
Optionalid: numberId of the bundle to lookup. If undefined, the bundle associated with this context is returned.
Gets a list of the current execution environment states.
Provides access to the current browser execution environment. This can be used to inspect some browser features.
Resolves a property from the bundle. If a given property name is not specified in this bundle, this method searches framework properties for the given name. Valid property names are defined in WellknownBundleManifestEntries.
The name of the property to lookup.
Property value or undefined if property could not be found.
Creates a URL from the given path within this or another bundle.
The path to a resource.
OptionalotherBundleName: stringThe name of the bundle where the resource is located (optional). If undefined, the URL is created for this bundle.
A resolved URL to the given path.
Resolves the service instance associated with the given service reference.
The type of the service instance.
The service reference.
The service instance or undefined if no service could be found.
Finds all services matching an interface and/or a given filter.
If interfaceName and filter are undefined, all registered services are returned.
OptionalinterfaceName: stringThe name of the service interface.
Optionalfilter: string | Filterreduces matching services by their properties.
Dynamically installs a new bundle by providing manifest metadata.
URL to the bundle resources.
manifest metadata.
OptionalsymName: string(symbolic) name of the bundle
Dynamically installs a new bundle by fetching manifest metadata from the given location.
URL to bundle resources.
Optionalmanifest: undefinedmanifest metadata.
OptionalsymName: string(symbolic) name of the bundle.
Tests if a service has at least one created instance.
The service reference.
Tests if a service is used by this or other bundles.
The service reference.
Registers a new service, provided by this bundle.
the interface(s) provided by the service.
the service instance.
Optionalproperties: ServicePropertiesthe service metadata.
A service registration handle.
Releases a service instance.
the service reference.
true, if service has been released successfully, false otherwise.
Bundle context.