Sleep timer class for controlling sleeper/shutdowner

Shutdowner

Hierarchy (view full)

Constructors

Properties

action: string

Desired action at the end, possible values are 'shutdown', 'hibernate', 'sleep', 'logoff', 'close', 'none'

Returns

asJSON: string

Gets the object as serialized JSON string. Or sets serialized JSON (to fill this object's metadata by the metadata included within the JSON)

fadeAfter: number

Start fade after (in minutes)

Returns

fadeVolume: boolean

Whether to fade volume

Returns

id: number

Gets integer id of the object

objectType: string

Gets the object type as string

persistentID: string

Gets persistent id of the object

shutdownAfter: number

Perform the selected action after (in minutes)

Returns

statusInfo: Promise<any>

Undocumented

title: string

Gets the object title

volumePercent: number

To which volume level fade out

Returns

Methods

  • Stops sleep timer previously started by startSleep

    Returns void

  • Parameters

    Returns Promise<any>

    Undocumented

  • Gets class name of the object.

    Returns string

  • Parameters

    • id: number

    Returns boolean

    Undocumented

  • Call defined method with locked data so user can access them.

    Parameters

    • func: (() => any)

      Method to call

        • (): any
        • Returns any

    Returns void

  • Parameters

    • id: number
    • value: boolean

    Returns void

    Undocumented

  • Starts sleep timer

    Returns void