rn-working-music-control
Version:
Fork of react-native-music-control
30 lines (29 loc) • 1.06 kB
TypeScript
import { Command } from './types';
export { Command };
declare type TPlayingInfo = any;
declare const MusicControl: {
STATE_PLAYING: any;
STATE_PAUSED: any;
STATE_ERROR: any;
STATE_STOPPED: any;
STATE_BUFFERING: any;
RATING_HEART: any;
RATING_THUMBS_UP_DOWN: any;
RATING_3_STARS: any;
RATING_4_STARS: any;
RATING_5_STARS: any;
RATING_PERCENTAGE: any;
enableBackgroundMode: (enable: boolean) => void;
setNowPlaying: (info: TPlayingInfo) => void;
setPlayback: (info: TPlayingInfo) => void;
updatePlayback: (info: TPlayingInfo) => void;
resetNowPlaying: () => void;
enableControl: (controlName: string, enable: boolean, options?: {}) => void;
handleCommand: (commandName: Command, value: any) => void;
setNotificationId: (notificationId: any, channelId: any) => void;
on: (actionName: Command, cb: (value: any) => void) => void;
off: (actionName: Command) => void;
stopControl: () => void;
handleAudioInterruptions: (enable: boolean) => void;
};
export default MusicControl;