Package org.robovm.apple.mediaplayer
Class MPMusicPlayerController
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.mediaplayer.MPMusicPlayerController
-
- All Implemented Interfaces:
NSObjectProtocol
,MPMediaPlayback
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
MPMusicPlayerApplicationController
public class MPMusicPlayerController extends NSObject implements MPMediaPlayback
- Since:
- Available in iOS 3.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPMusicPlayerController.MPMusicPlayerControllerPtr
static class
MPMusicPlayerController.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MPMusicPlayerController()
protected
MPMusicPlayerController(NSObject.Handle h, long handle)
protected
MPMusicPlayerController(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
MPMusicPlayerController
protected MPMusicPlayerController()
-
MPMusicPlayerController
protected MPMusicPlayerController(NSObject.Handle h, long handle)
-
MPMusicPlayerController
protected MPMusicPlayerController(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getApplicationMusicPlayer
public static MPMusicPlayerController getApplicationMusicPlayer()
-
getApplicationQueuePlayer
public static MPMusicPlayerApplicationController getApplicationQueuePlayer()
- Since:
- Available in iOS 10.3 and later.
-
getSystemMusicPlayer
public static MPMusicPlayerController getSystemMusicPlayer()
-
getPlaybackState
public MPMusicPlaybackState getPlaybackState()
-
getRepeatMode
public MPMusicRepeatMode getRepeatMode()
-
setRepeatMode
public void setRepeatMode(MPMusicRepeatMode v)
-
getShuffleMode
public MPMusicShuffleMode getShuffleMode()
-
setShuffleMode
public void setShuffleMode(MPMusicShuffleMode v)
-
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.
-
isPreparedToPlay
public boolean isPreparedToPlay()
- Specified by:
isPreparedToPlay
in interfaceMPMediaPlayback
-
getCurrentPlaybackTime
public double getCurrentPlaybackTime()
- Specified by:
getCurrentPlaybackTime
in interfaceMPMediaPlayback
-
setCurrentPlaybackTime
public void setCurrentPlaybackTime(double v)
- Specified by:
setCurrentPlaybackTime
in interfaceMPMediaPlayback
-
getCurrentPlaybackRate
public float getCurrentPlaybackRate()
- Specified by:
getCurrentPlaybackRate
in interfaceMPMediaPlayback
-
setCurrentPlaybackRate
public void setCurrentPlaybackRate(float v)
- Specified by:
setCurrentPlaybackRate
in interfaceMPMediaPlayback
-
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(MPMediaQuery query)
-
setQueue
public void setQueue(MPMediaItemCollection itemCollection)
-
setQueue
public void setQueue(MPMusicPlayerQueueDescriptor descriptor)
- Since:
- Available in iOS 10.1 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()
-
prepareToPlay
public void prepareToPlay()
- Specified by:
prepareToPlay
in interfaceMPMediaPlayback
-
play
public void play()
- Specified by:
play
in interfaceMPMediaPlayback
-
pause
public void pause()
- Specified by:
pause
in interfaceMPMediaPlayback
-
stop
public void stop()
- Specified by:
stop
in interfaceMPMediaPlayback
-
beginSeekingForward
public void beginSeekingForward()
- Specified by:
beginSeekingForward
in interfaceMPMediaPlayback
-
beginSeekingBackward
public void beginSeekingBackward()
- Specified by:
beginSeekingBackward
in interfaceMPMediaPlayback
-
endSeeking
public void endSeeking()
- Specified by:
endSeeking
in interfaceMPMediaPlayback
-
-