Skip to content

Commit

Permalink
Deprecate syncRemoteCommandsWithCommandCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Sep 28, 2021
1 parent cca7f68 commit d9eb313
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SwiftAudioEx/Classes/AudioPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ public class AudioPlayer: AVPlayerWrapperDelegate {
self.enableRemoteCommands(remoteCommands)
}
}

/**
Syncs the current remoteCommands with the iOS command center.
Can be used to update item states - e.g. like, dislike and bookmark.
*/
@available(*, deprecated, message: "Directly set .remoteCommands instead")
public func syncRemoteCommandsWithCommandCenter() {
self.enableRemoteCommands(remoteCommands)
}

// MARK: - NowPlayingInfo

Expand Down

0 comments on commit d9eb313

Please sign in to comment.