Class WidgetsService

Hierarchy

Index

Constructors

constructor

Properties

hostsService

hostsService: HostsService

scenesService

scenesService: ScenesService

serviceName

serviceName: string = this.constructor.name

sourcesService

sourcesService: SourcesService

userService

userService: UserService

videoService

videoService: VideoService

Static hasInstance

hasInstance: boolean = false

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

serviceAfterInit: Subject<Service> = new Subject<Service>()

lifecycle hook

Accessors

Static instance

  • get instance(): any

Methods

Protected afterInit

  • afterInit(): void
  • calls only once per application life all observers are ready to listen service's events

    Returns void

createWidget

getTesters

getWidgetUrl

Protected init

  • init(): void

loadWidgetFile

  • loadWidgetFile(path: string, sceneId: string): Promise<void>
  • Load a widget file from the given path

    Parameters

    • path: string

      the path to the widget file to laod

    • sceneId: string

      the id of the scene to load into

    Returns Promise<void>

Protected mounted

  • mounted(): void

saveWidgetFile

  • saveWidgetFile(path: string, widgetItemId: string): Promise<void>
  • Save a widget file to the given path

    Parameters

    • path: string

      the path to the save the widget file

    • widgetItemId: string

      the id of the widget to save

    Returns Promise<void>

Static createInstance

  • createInstance(ServiceClass: any): any

Static getResourceId

  • getResourceId(resource: any): string

Static setupInitFunction

  • setupInitFunction(fn: function): void

Static setupProxy

  • setupProxy(fn: function): void