Docs (4.0.0)
Services

class Service

An abstract class that represents a named service.

abstract

class Service
extends ManagedObject

Description

Services are instances of the Service class that are made available to the rest of your application by ID, using ServiceContext (available through app.services). Typically, services are observed from activities or other services, and provide shared functionality or data.

To add a service, extend the Service class, create an instance, assign an ID, and add it to the service context using app.addService(). When another service is added with the same ID, the existing service is replaced and unlinked.

Constructor

Instance Members

Inherited Members

Related