Skip to content

Instantly share code, notes, and snippets.

@dnicolson
Created December 24, 2019 17:55
Show Gist options
  • Save dnicolson/63776e62329090d9558ad0a3d98a84d8 to your computer and use it in GitHub Desktop.
Save dnicolson/63776e62329090d9558ad0a3d98a84d8 to your computer and use it in GitHub Desktop.
MediaRemote.framework method signatures
enum {
kMRPlaybackStateUnknown = 0,
kMRPlaybackStatePlaying,
kMRPlaybackStatePaused,
kMRPlaybackStateStopped,
kMRPlaybackStateInterrupted
};
typedef uint32_t MRPlaybackState;
typedef void (^MRMediaRemoteGetNowPlayingPlayerCompletion)(id playbackPlayer);
typedef void (^MRMediaRemoteGetNowPlayingApplicationPlaybackStateCompletion)(MRPlaybackState playbackState);
typedef void (^MRMediaRemoteGetNowPlayingApplicationPlaybackStateCompletion)(MRPlaybackState playbackState);
void MRMediaRemoteGetNowPlayingPlayer(dispatch_queue_t queue, MRMediaRemoteGetNowPlayingPlayerCompletion completion);
void MRMediaRemoteGetNowPlayingApplicationPlaybackState(dispatch_queue_t queue, MRMediaRemoteGetNowPlayingApplicationPlaybackStateCompletion completion);
void MRMediaRemoteGetNowPlayingApplicationPlaybackStateForOrigin(MROriginRef origin, dispatch_queue_t queue, MRMediaRemoteGetNowPlayingApplicationPlaybackStateCompletion completion);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment