MPMusicPlayerController Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class that plays media items from the device's MPMediaLibrary.
[Foundation.Register("MPMusicPlayerController", true)]
public class MPMusicPlayerController : Foundation.NSObject, IDisposable, MediaPlayer.IMPMediaPlayback
[<Foundation.Register("MPMusicPlayerController", true)>]
type MPMusicPlayerController = class
inherit NSObject
interface IMPMediaPlayback
interface INativeObject
interface IDisposable
- Inheritance
- Derived
- Attributes
- Implements
Remarks
This class may only be used from the application's main thread.
Constructors
| Name | Description |
|---|---|
| MPMusicPlayerController() |
Default constructor that initializes a new instance of this class with no parameters. |
| MPMusicPlayerController(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| MPMusicPlayerController(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| ApplicationMusicPlayer |
Gets the music player for the application queue. |
| ApplicationQueuePlayer |
Gets the music player for the application queue. |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| CurrentPlaybackRate | |
| CurrentPlaybackTime | |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IndexOfNowPlayingItem |
Gets the index of the currently playing item. |
| iPodMusicPlayer |
Developers should not use this deprecated property. Developers should use 'SystemMusicPlayer' instead. |
| IsDirectBinding | (Inherited from NSObject) |
| IsPreparedToPlay | |
| IsProxy | (Inherited from NSObject) |
| NowPlayingItem | |
| NowPlayingItemDidChangeNotification |
Notification constant for NowPlayingItemDidChange |
| PlaybackState | |
| PlaybackStateDidChangeNotification |
Notification constant for PlaybackStateDidChange |
| RepeatMode | |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| ShuffleMode | |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| SystemMusicPlayer | |
| Volume | |
| VolumeDidChangeNotification |
Notification constant for VolumeDidChange |
| Zone | (Inherited from NSObject) |