API Reference
This section documents the public export surface from packages/react-native/src/index.ts.
Reference pages
Section titled “Reference pages”| Page | Description |
|---|---|
| Audio Player | audioPlayer namespace (AudioPlayerApi) for setup, queue, transport, snapshot queries, capabilities, and listeners. |
| Media Session | mediaSession namespace (MediaSessionApi) for remote-command listeners. |
| Legato Facade | Legato unified facade combining playback + media-session namespaces. |
| Events | Event constants and listener helper exports from events.ts. |
| Sync | createLegatoSync and createAudioPlayerSync controller factories. |
| Types | Public type contracts re-exported or declared by this package. |
| Expo Config Plugin | Build-time plugin behavior and boundaries (plugin/src/*). |
| Parity Mapping | Capability-by-capability parity map with evidence pointers. |
Export index
Section titled “Export index”export { Legato, audioPlayer, mediaSession };export { AUDIO_PLAYER_EVENTS, MEDIA_SESSION_EVENTS, LEGATO_EVENTS, addAudioPlayerListener, addMediaSessionListener, addLegatoListener, onPlaybackStateChanged, onPlaybackActiveTrackChanged, onPlaybackQueueChanged, onPlaybackProgress, onPlaybackEnded, onPlaybackError, onRemotePlay, onRemotePause, onRemoteNext, onRemotePrevious, onRemoteSeek,};export { createAudioPlayerSync, createLegatoSync };export type * from './definitions';