Edytuj

Udostępnij za pośrednictwem


MPMusicPlayerController.Notifications Class

Definition

Notification posted by the MPMusicPlayerController class.

public static class MPMusicPlayerController.Notifications
type MPMusicPlayerController.Notifications = class
Inheritance
MPMusicPlayerController.Notifications

Remarks

This is a static class which contains various helper methods that allow developers to observe events posted in the iOS notification hub (NSNotificationCenter).

The methods defined in this class post events invoke the provided method or lambda with a NSNotificationEventArgs parameter which contains strongly typed properties for the notification arguments.

Methods

ObserveNowPlayingItemDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the NowPlayingItemDidChangeNotification constant.

ObserveNowPlayingItemDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the NowPlayingItemDidChangeNotification constant.

ObservePlaybackStateDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the PlaybackStateDidChangeNotification constant.

ObservePlaybackStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the PlaybackStateDidChangeNotification constant.

ObserveVolumeDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the VolumeDidChangeNotification constant.

ObserveVolumeDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the VolumeDidChangeNotification constant.

Applies to