Class MPMusicPlayerController

    • Constructor Detail

      • MPMusicPlayerController

        protected MPMusicPlayerController()
      • MPMusicPlayerController

        protected MPMusicPlayerController​(NSObject.Handle h,
                                          long handle)
      • MPMusicPlayerController

        protected MPMusicPlayerController​(NSObject.SkipInit skipInit)
    • Method Detail

      • getVolume

        @Deprecated
        public float getVolume()
        Deprecated.
        Deprecated in iOS 7.0. Use MPVolumeView for volume control.
        Since:
        Available in iOS 3.0 and later.
      • setVolume

        @Deprecated
        public void setVolume​(float v)
        Deprecated.
        Deprecated in iOS 7.0. Use MPVolumeView for volume control.
        Since:
        Available in iOS 3.0 and later.
      • getNowPlayingItem

        public MPMediaItem getNowPlayingItem()
      • setNowPlayingItem

        public void setNowPlayingItem​(MPMediaItem v)
      • getIndexOfNowPlayingItem

        public long getIndexOfNowPlayingItem()
        Since:
        Available in iOS 5.0 and later.
      • getIPodMusicPlayer

        @Deprecated
        public static MPMusicPlayerController getIPodMusicPlayer()
        Deprecated.
        Deprecated in iOS 8.0.
        Since:
        Available in iOS 3.0 and later.
      • IsPreparedToPlayDidChangeNotification

        @Deprecated
        public static NSString IsPreparedToPlayDidChangeNotification()
        Deprecated.
        Deprecated in iOS 9.0. Use AVPlayerViewController in AVKit.
        Since:
        Available in iOS 3.2 and later.
      • PlaybackStateDidChangeNotification

        public static NSString PlaybackStateDidChangeNotification()
      • NowPlayingItemDidChangeNotification

        public static NSString NowPlayingItemDidChangeNotification()
      • VolumeDidChangeNotification

        public static NSString VolumeDidChangeNotification()
      • QueueDidChangeNotification

        public static NSString QueueDidChangeNotification()
      • setQueue

        public void setQueue​(NSArray<NSString> storeIDs)
        Since:
        Available in iOS 9.3 and later.
      • prependQueueDescriptor

        public void prependQueueDescriptor​(MPMusicPlayerQueueDescriptor descriptor)
        Since:
        Available in iOS 10.3 and later.
      • appendQueueDescriptor

        public void appendQueueDescriptor​(MPMusicPlayerQueueDescriptor descriptor)
        Since:
        Available in iOS 10.3 and later.
      • prepareToPlay

        public void prepareToPlay​(org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Since:
        Available in iOS 10.1 and later.
      • skipToNextItem

        public void skipToNextItem()
      • skipToBeginning

        public void skipToBeginning()
      • skipToPreviousItem

        public void skipToPreviousItem()
      • beginGeneratingPlaybackNotifications

        public void beginGeneratingPlaybackNotifications()
      • endGeneratingPlaybackNotifications

        public void endGeneratingPlaybackNotifications()