Skip to content

Commit

Permalink
Deprecate clearNowPlayingMetadata (#1909)
Browse files Browse the repository at this point in the history
See #1653
  • Loading branch information
puckey authored Feb 6, 2023
1 parent 399f2b8 commit ddead98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/trackPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ export async function updateMetadataForTrack(
return TrackPlayer.updateMetadataForTrack(trackIndex, metadata);
}

/**
* @deprecated Nominated for removal in the next major version. If you object
* to this, please describe your use-case in the following issue:
* https://github.com/doublesymmetry/react-native-track-player/issues/1653
*/
export function clearNowPlayingMetadata(): Promise<void> {
return TrackPlayer.clearNowPlayingMetadata();
}
Expand Down

0 comments on commit ddead98

Please sign in to comment.