0.0.61 • Published 2 years ago

capacitor-plugin-applemusic v0.0.61

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

capacitor-plugin-applemusic

It is in the development stage. Please do not use it.

Install

npm install capacitor-plugin-applemusic
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


configure(...)

configure(options: { config: MusicKit.Config; }) => Promise<{ result: boolean; }>
ParamType
options{ config: Config; }

Returns: Promise<{ result: boolean; }>


isAuthorized()

isAuthorized() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


hasMusicSubscription()

hasMusicSubscription() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


authorize()

authorize() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


unauthorize()

unauthorize() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


setSong(...)

setSong(options: { songId: string; librarySongId?: string; previewUrl?: string; songTitle?: string; albumTitle?: string; forcePreview?: boolean; }) => Promise<{ result: boolean; librarySongId?: string; albumTitle?: string; }>
ParamType
options{ songId: string; librarySongId?: string; previewUrl?: string; songTitle?: string; albumTitle?: string; forcePreview?: boolean; }

Returns: Promise<{ result: boolean; librarySongId?: string; albumTitle?: string; }>


getLibraryAlbum(...)

getLibraryAlbum(options: { id?: string; title?: string; }) => Promise<{ result: boolean; album?: { title: string; id: string; tracks: { title: string; id: string; discNumber: string; trackNumber: string; }[]; }; }>
ParamType
options{ id?: string; title?: string; }

Returns: Promise<{ result: boolean; album?: { title: string; id: string; tracks: { title: string; id: string; discNumber: string; trackNumber: string; }[]; }; }>


getLibraryAlbums(...)

getLibraryAlbums(options: { limit: number; offset: number; }) => Promise<{ result: boolean; albums: { title: string; id: string; artworkUrl?: string; }[]; hasNext: boolean; }>
ParamType
options{ limit: number; offset: number; }

Returns: Promise<{ result: boolean; albums: { title: string; id: string; artworkUrl?: string; }[]; hasNext: boolean; }>


play()

play() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


stop()

stop() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


pause()

pause() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


currentPlaybackDuration()

currentPlaybackDuration() => Promise<{ result: number; }>

Returns: Promise<{ result: number; }>


currentPlaybackTime()

currentPlaybackTime() => Promise<{ result: number; }>

Returns: Promise<{ result: number; }>


seekToTime(...)

seekToTime(options: { playbackTime: number; }) => Promise<{ result: boolean; }>
ParamType
options{ playbackTime: number; }

Returns: Promise<{ result: boolean; }>


setVolume(...)

setVolume(options: { volume: number; }) => Promise<{ result: boolean; }>
ParamType
options{ volume: number; }

Returns: Promise<{ result: boolean; }>


addListener(...)

addListener(eventName: 'playbackStateDidChange', listenerFunc: PlaybackStateDidChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName"playbackStateDidChange"
listenerFunc(state: { result: "none" | "loading" | "playing" | "paused" | "stopped" | "ended" | "seeking" | "waiting" | "stalled" | "completed"; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener(...)

addListener(eventName: 'authorizationStatusDidChange', listenerFunc: AuthorizationStatusDidChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName"authorizationStatusDidChange"
listenerFunc(state: { result: AuthorizationStatus; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
0.0.60

2 years ago

0.0.61

2 years ago

0.0.59

2 years ago

0.0.56

2 years ago

0.0.57

2 years ago

0.0.58

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.55

2 years ago

0.0.50

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.33

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago