0.0.61 • Published 3 years ago

capacitor-plugin-applemusic v0.0.61

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.61

3 years ago

0.0.59

3 years ago

0.0.56

3 years ago

0.0.57

3 years ago

0.0.58

3 years ago

0.0.46

3 years ago

0.0.47

3 years ago

0.0.51

3 years ago

0.0.52

3 years ago

0.0.53

3 years ago

0.0.54

3 years ago

0.0.55

3 years ago

0.0.50

3 years ago

0.0.48

3 years ago

0.0.49

3 years ago

0.0.44

3 years ago

0.0.45

3 years ago

0.0.40

3 years ago

0.0.41

3 years ago

0.0.42

3 years ago

0.0.43

3 years ago

0.0.37

3 years ago

0.0.38

3 years ago

0.0.39

3 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.36

3 years ago

0.0.20

4 years ago

0.0.21

4 years ago

0.0.22

4 years ago

0.0.23

4 years ago

0.0.24

4 years ago

0.0.25

4 years ago

0.0.30

4 years ago

0.0.31

4 years ago

0.0.32

4 years ago

0.0.33

4 years ago

0.0.26

4 years ago

0.0.27

4 years ago

0.0.28

4 years ago

0.0.29

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago