Lens Scripting API
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    enabled: boolean = true
    id: number = ...

    Accessors

    • get callback(): () => void

      Returns the callback of this event.

      Returns () => void

    • get markedForRemoval(): boolean

      Internal use only.

      Returns boolean

    • get name(): string

      Returns the name of this event.

      Returns string

    • get priority(): number

      Returns number

    Methods

    • Associates a callback function with this event. The provided function will be executed when the event is invoked.

      Parameters

      • callback: () => void

        The function to execute when this event is triggered

      Returns void

    • Executes the callback function associated with this event. Does nothing if no callback has been bound.

      Returns void

    • Internal use only.

      Parameters

      • name: string
      • Optionalcallback: () => void
      • priority: number = DEFAULT_PRIORITY
      • enabled: boolean = true

      Returns void

    • Internal use only.

      Parameters

      • value: boolean
      • accessToken: symbol

      Returns void

    • Internal use only.

      Parameters

      • value: string
      • accessToken: symbol

      Returns void

    • Internal use only.

      Parameters

      • value: number
      • accessToken: symbol

      Returns void