Add playlist to library
details of playlist which is to be added to library
ID of playlist which has been added
Add songs to playlist in library. The song must also exist in the library
ID of playlist in which songs are to be added
Songs which are to be added in the playlist
Change login status and signed in user's account name.
accountId to change details of. Returned from registerAccount
true if user is logged in otherwise false
Close login modal if its open
Get all registered context menu items
Get the current playing track. Undefined if no track is playing
Get entities such as playlists, artists, albums, genres from database by provided options
filter the results
Returns a list of package names of all installed extensions
Get state of music player. Undefined is player is broken and audio can't be loaded
Fetch preferences by key. If no key is provided, all preferences co-relating to current extension will be fetched.
key of preference to fetch. keys within complex objects can be separated by .
If the provided key is not found, then default value will be returned.
Get the queue of tracks
Get decrypted value of an encrypted preference
key of preference to fetch. keys within complex objects can be separated by .
If the provided key is not found, then default value will be returned.
Get songs from database filtered by provided options
filter the results
Get current time of the player.
Get volume directly from the audio player
Remove callbacks from extra events
name of event whose callback is to be removed
Event fired when playlists are requested by the user The callback should return and result playlists or undefined
Event fired when songs of a single playlist are requested by the user The callback should return result songs or undefined
Event fired when moosync is passed url containing registered oauth channel name Oauth channel should be registered using registerOAuth
Event fired when song queue changes order or new song is added or removed
Event fired when user seeks player manually
Event fired when user changes volume
Event fired when player changes state to / from paused, stopped, playing, loading
Event fired when new song is loaded into player
Event fired when preferences corresponding to the extension are changed
Event fired when song provided by the extension lacks Song.playbackUrl or Song.duration Callback should return both playbackUrl and duration even if only either is missing or undefined.
Can be used to dynamically provide playbackUrl and/or duration
Event fired when custom url corresponding to the extension is called Callback should return data as buffer and mimetype for the same or undefined
if an url extension://moosync.extension.packageName/testData
is provided to Moosync. When the url is fetched,
this event will be triggered and custom data can be provided at runtime
Event fired when user enters url in 'Add song from URL' modal Callback should return parsed song or undefined
Event fired when user enters url in 'Add playlist from URL' modal Callback should return a playlist and parsed songs in that playlist or undefined
Event fired when user searches a term in search page Callback should return a providerName and result songs or undefined
Event fired when user opens Explore page Callback should return a providerName and result songs or undefined
Event fired when lyrics are requested for a song Callback should return a string (HTML formatting) with lyrics or undefined
Event fired when songs by a particular artist are requested Callback should return parsed songs or undefined
Event fired when songs by a particular album are requested Callback should return parsed songs or undefined
Event fired when the app only has id for the song but requires complete details Callback should return parsed song or undefined
Event fired when songs are added to library
Event fired when songs are removed from library
Event fired when playlist is added to library
Event fired when playlist is removed from library
Open a url in system browser
string corresponding to URL which is to be opened
Open login modal. Show the modal if the extension demands the user to open a linux to fulfill OAuth requirements.
The modal also allows the user to manually enter a token or manually click a button when the task is fulfilled
options to control the oauth modal
Add an account to show in accounts section in main app. The user will then be able to perform login / logout operations on this account and also view its details
name of service provider
background color to use for account card (in hex format. Eg. #000000)
icon of account (preferably service provider's icon)
callback fired when user wishes to login
callback fired when user wishes to logout
generated accountId
Register a callback for Oauth on given path. This OAuth can be triggered by calling the url moosync://{path} If the path matches, the whole URL is passed to this extension.
path on which the callback will be triggered
Remove an item from context menu
index of context menu item which is to be removed
id of song to remove
Remove song from library
song to remove
Set extra info for an album. This info is editable by the user using "Show info" context menu option on album
Key-value pairs of editable info
Set extra info for an artist. This info is editable by the user using "Show info" context menu option on artist
Key-value pairs of editable info
Adds new context menu item/s
New menu item to show in context menu
Set preference by key.
key separated by '.'
value to be stored for corresponding key
Encrypt value and store in preferences
key separated by '.'
value to be stored for corresponding key
Show toast on top-right of screen
message to show in toast
duration of toast in milliseconds. Maximum 5000ms
type of toast. Usually denotes color
Generated using TypeDoc
Object containing controls for player