public class MPMusicPlayerController extends NSObject implements MPMediaPlayback
| Modifier and Type | Class and Description |
|---|---|
static interface |
MPMusicPlayerController.Block_prepareToPlayWithCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MPMusicPlayerController(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static MPMusicPlayerController |
alloc() |
static MPMusicPlayerController |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
void |
appendQueueDescriptor(MPMusicPlayerQueueDescriptor descriptor)
Adds the contents of the queue descriptor to the end of the queue
|
static MPMusicPlayerController |
applicationMusicPlayer()
Playing items with applicationMusicPlayer does not affect Music's playback state.
|
static MPMusicPlayerApplicationController |
applicationQueuePlayer()
Similar to applicationMusicPlayer, but allows direct manipulation of the queue.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
void |
beginGeneratingPlaybackNotifications()
These methods determine whether playback notifications will be generated.
|
void |
beginSeekingBackward() |
void |
beginSeekingForward()
The seeking rate will increase the longer scanning is active.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
float |
currentPlaybackRate()
The current playback rate of the now playing item.
|
double |
currentPlaybackTime()
The current playback time of the now playing item in seconds.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
endGeneratingPlaybackNotifications() |
void |
endSeeking() |
static long |
hash_static() |
long |
indexOfNowPlayingItem()
Returns the index of the now playing item in the current playback queue.
|
MPMusicPlayerController |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static MPMusicPlayerController |
iPodMusicPlayer()
Deprecated.
|
boolean |
isPreparedToPlay()
Returns YES if prepared for playback.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static MPMusicPlayerController |
new_objc() |
MPMediaItem |
nowPlayingItem()
Returns the currently playing media item, or nil if none is playing.
|
void |
pause()
Pauses playback if playing.
|
void |
play()
Plays items from the current queue, resuming paused playback if possible.
|
long |
playbackState()
Returns the current playback state of the music player
|
void |
prepareToPlay()
Prepares the current queue for playback, interrupting any active (non-mixible) audio sessions.
|
void |
prepareToPlayWithCompletionHandler(MPMusicPlayerController.Block_prepareToPlayWithCompletionHandler completionHandler)
The completion handler will be called when the first item from the queue is buffered and ready to play.
|
void |
prependQueueDescriptor(MPMusicPlayerQueueDescriptor descriptor)
Inserts the contents of the queue descriptor after the now playing item
|
long |
repeatMode()
Determines how music repeats after playback completes.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setCurrentPlaybackRate(float value)
The current playback rate of the now playing item.
|
void |
setCurrentPlaybackTime(double value)
The current playback time of the now playing item in seconds.
|
void |
setNowPlayingItem(MPMediaItem value)
Returns the currently playing media item, or nil if none is playing.
|
void |
setQueueWithDescriptor(MPMusicPlayerQueueDescriptor descriptor) |
void |
setQueueWithItemCollection(MPMediaItemCollection itemCollection) |
void |
setQueueWithQuery(MPMediaQuery query)
Call -play to begin playback after setting an item queue source.
|
void |
setQueueWithStoreIDs(NSArray<java.lang.String> storeIDs) |
void |
setRepeatMode(long value)
Determines how music repeats after playback completes.
|
void |
setShuffleMode(long value)
Determines how music is shuffled when playing.
|
static void |
setVersion_static(long aVersion) |
void |
setVolume(float value)
Deprecated.
|
long |
shuffleMode()
Determines how music is shuffled when playing.
|
void |
skipToBeginning()
Restarts playback at the beginning of the currently playing media item.
|
void |
skipToNextItem()
Skips to the next item in the queue.
|
void |
skipToPreviousItem()
Skips to the previous item in the queue.
|
void |
stop()
Ends playback.
|
static org.moe.natj.objc.Class |
superclass_static() |
static MPMusicPlayerController |
systemMusicPlayer()
Playing media items with the systemMusicPlayer will replace the user's current Music state.
|
static long |
version_static() |
float |
volume()
Deprecated.
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected MPMusicPlayerController(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MPMusicPlayerController alloc()
public static MPMusicPlayerController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static MPMusicPlayerController applicationMusicPlayer()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
@Deprecated public static MPMusicPlayerController iPodMusicPlayer()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static MPMusicPlayerController new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static MPMusicPlayerController systemMusicPlayer()
public static long version_static()
public void beginGeneratingPlaybackNotifications()
public void beginSeekingBackward()
beginSeekingBackward in interface MPMediaPlaybackpublic void beginSeekingForward()
MPMediaPlaybackbeginSeekingForward in interface MPMediaPlaybackpublic float currentPlaybackRate()
MPMediaPlaybackcurrentPlaybackRate in interface MPMediaPlaybackpublic double currentPlaybackTime()
MPMediaPlaybackcurrentPlaybackTime in interface MPMediaPlaybackpublic void endGeneratingPlaybackNotifications()
public void endSeeking()
endSeeking in interface MPMediaPlaybackpublic long indexOfNowPlayingItem()
public MPMusicPlayerController init()
public boolean isPreparedToPlay()
MPMediaPlaybackisPreparedToPlay in interface MPMediaPlaybackpublic MPMediaItem nowPlayingItem()
public void pause()
MPMediaPlaybackpause in interface MPMediaPlaybackpublic void play()
MPMediaPlaybackplay in interface MPMediaPlaybackpublic long playbackState()
public void prepareToPlay()
MPMediaPlaybackprepareToPlay in interface MPMediaPlaybackpublic void prepareToPlayWithCompletionHandler(MPMusicPlayerController.Block_prepareToPlayWithCompletionHandler completionHandler)
public long repeatMode()
public void setCurrentPlaybackRate(float value)
MPMediaPlaybacksetCurrentPlaybackRate in interface MPMediaPlaybackpublic void setCurrentPlaybackTime(double value)
MPMediaPlaybacksetCurrentPlaybackTime in interface MPMediaPlaybackpublic void setNowPlayingItem(MPMediaItem value)
public void setQueueWithDescriptor(MPMusicPlayerQueueDescriptor descriptor)
public void setQueueWithItemCollection(MPMediaItemCollection itemCollection)
public void setQueueWithQuery(MPMediaQuery query)
public void setQueueWithStoreIDs(NSArray<java.lang.String> storeIDs)
public void setRepeatMode(long value)
public void setShuffleMode(long value)
@Deprecated public void setVolume(float value)
public long shuffleMode()
public void skipToBeginning()
public void skipToNextItem()
public void skipToPreviousItem()
public void stop()
MPMediaPlaybackstop in interface MPMediaPlayback@Deprecated public float volume()
public void appendQueueDescriptor(MPMusicPlayerQueueDescriptor descriptor)
public static MPMusicPlayerApplicationController applicationQueuePlayer()
public void prependQueueDescriptor(MPMusicPlayerQueueDescriptor descriptor)