Skip to content

API Reference

This section documents the public export surface from packages/react-native/src/index.ts.

PageDescription
Audio PlayeraudioPlayer namespace (AudioPlayerApi) for setup, queue, transport, snapshot queries, capabilities, and listeners.
Media SessionmediaSession namespace (MediaSessionApi) for remote-command listeners.
Legato FacadeLegato unified facade combining playback + media-session namespaces.
EventsEvent constants and listener helper exports from events.ts.
SynccreateLegatoSync and createAudioPlayerSync controller factories.
TypesPublic type contracts re-exported or declared by this package.
Expo Config PluginBuild-time plugin behavior and boundaries (plugin/src/*).
Parity MappingCapability-by-capability parity map with evidence pointers.
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';