Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PluginService

Hierarchy

  • PluginService

Implements

  • OnDestroy

Index

Properties

pluginId

pluginId: ObjectId

Identifier for the plugin currently in context

viewId

viewId: ObjectId

Identifier for the view currently in context, each time the plugin is opened a new viewId is generated

Methods

method

  • method(method: string): (Anonymous function)
  • Execute an instance method on the plugins backend component through a proxy

    Parameters

    • method: string

      The method name to execute

    Returns (Anonymous function)

    A function which can be executed with the arguments to pass to target method

staticMethod

  • staticMethod(method: string): (Anonymous function)
  • Execute a static method on the plugins backend component through a proxy

    Parameters

    • method: string

      The method name to execute

    Returns (Anonymous function)

    A function which can be executed with the arguments to pass to target method

subscribe

  • Subscribe to a PubSub topic on the plugins backend component

    Parameters

    • name: string

      Name of the topic to subscribe to

    Returns Promise<ViewSubscription<any>>

    An event emitter to listen for messages