Undocumented

Hierarchy

Constructors

Properties

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)

deleted: boolean

Set to true after deletion so that 'change' event is called and item is removed from UI lists.

dontNotify: boolean

Undocumented

id: number

Gets integer id of the object

idColl: number

Undocumented

isObservable: boolean

Whether this object can be listened (e.g. for 'change' event)

isStatusBarSource: boolean

Is source for status bar informations.

itemImageType: string

Undocumented

objectType: string

Gets the object type as string

persistentID: string

Gets persistent id of the object

statusInfo: Promise<any>

Undocumented

supportPin: boolean

Whether object support pin to pinned list

title: string

Gets the object title

Methods

  • Add new external list associated with object.

    Parameters

    • linkType: string

      Type of a link

    • linkInfo: string

      Link information (like release or releaseGroup for musicbrainz link)

    • link: string

      Link string

    Returns Promise<any>

  • Lock object to update state. Events are not called when in update state.

    Returns void

  • Updates the object every X ms when called periodically. Useful e.g. when filling lists. Can be used only in the update lock! (i.e. between beginUpdate/endUpdate)

    Parameters

    • interval: number

    Returns void

  • Undocumented

    Parameters

    Returns Promise<any>

  • Unlock object from update state. beginUpdate and endUpdate must be in pair. When endUpdate is called, change event is called.

    Returns boolean

  • Undocumented

    Parameters

    • dimX: number
    • dimY: number

    Returns string

  • Gets class name of the object.

    Returns string

  • Get external link associated with the object. All link identifiers are (updated list is available in consts.js) : var LINK_MUSICBRAINZ = 'musicbrainz', LINK_ACOUSTID = 'acoustid', LINK_TVDB = 'tvdb', LINK_MAZE = 'maze', LINK_IMDB = 'imdb', LINK_WIKI = 'wiki', LINK_ECHOPRINT = 'echoprint', LINK_MOVIEDB = 'moviedb', LINK_DISCOGS = 'discogs';

    Parameters

    • Rest ...params: any[]

    Returns ExternalLinksList

  • Undocumented

    Parameters

    • Rest ...params: any[]

    Returns number

  • Undocumented

    Parameters

    • id: number

    Returns boolean

  • Object is pinned in pinned list

    Returns Promise<any>

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

    Parameters

    • func: (() => any)

      Method to call

        • (): any
        • Returns any

    Returns void

  • Call defined method with the item locked for modifications.

    Parameters

    • Rest ...params: any[]

    Returns Promise<any>

  • Notifies that the object was changed (e.g. to force visual update etc.)

    Parameters

    • Rest ...params: any[]

    Returns void

  • Remove external link from object.

    Parameters

    • Rest ...params: any[]

    Returns Promise<any>

  • Undocumented

    Parameters

    • id: number
    • value: boolean

    Returns void

  • Set object is pinned in pinned list.

    Parameters

    • pinned: boolean

      Object is pinned

    • collID: number

      ID of collection where object is pinned

    Returns void

Events

event_change: ((changeType, ...additionalArgs) => void)

Type declaration

    • (changeType, ...additionalArgs): void
    • Event is called when object is somehow changed

      See App.listen

      Example

      app.listen(object, 'change', (changeType) => {  });
      

      Parameters

      • changeType: string

        additional change type (can have values like 'tracklist', 'deleted', 'title' or undefined)

      • Rest ...additionalArgs: any[]

      Returns void

event_destroying: (() => void)

Type declaration

    • (): void
    • Event is called when object is going to destroy

      See App.listen

      Returns void

event_statuschange: (() => void)

Type declaration

    • (): void
    • Event is called when status info of the object is changed

      See App.listen

      Returns void