public class CPNowPlayingTemplate extends CPTemplate
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CPNowPlayingTemplate(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
void |
addObserver(CPNowPlayingTemplateObserver observer)
Add an observer.
|
static CPNowPlayingTemplate |
alloc() |
static CPNowPlayingTemplate |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
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() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
CPNowPlayingTemplate |
init() |
CPNowPlayingTemplate |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
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) |
boolean |
isAlbumArtistButtonEnabled()
A Boolean value indicating whether the string that displays the album and artist above the playback controls should be a tappable button
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isUpNextButtonEnabled()
A Boolean value indicating whether the "Up Next" button on the upper right of a Now Playing view is enabled.
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static CPNowPlayingTemplate |
new_objc() |
NSArray<? extends CPNowPlayingButton> |
nowPlayingButtons()
Playback control buttons on the Now Playing screen, like repeat, shuffle, and more.
|
void |
removeObserver(CPNowPlayingTemplateObserver observer)
Remove an observer.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAlbumArtistButtonEnabled(boolean value)
A Boolean value indicating whether the string that displays the album and artist above the playback controls should be a tappable button
|
void |
setUpNextButtonEnabled(boolean value)
A Boolean value indicating whether the "Up Next" button on the upper right of a Now Playing view is enabled.
|
void |
setUpNextTitle(java.lang.String value)
If your template elects to display the "Up Next" button, you may optionally specify a string
indicating the title for the up next button.
|
static void |
setVersion_static(long aVersion) |
static CPNowPlayingTemplate |
sharedTemplate()
Access the shared now playing template for your app.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
void |
updateNowPlayingButtons(NSArray<? extends CPNowPlayingButton> nowPlayingButtons)
Update the buttons displayed in this Now Playing template.
|
java.lang.String |
upNextTitle()
If your template elects to display the "Up Next" button, you may optionally specify a string
indicating the title for the up next button.
|
static long |
version_static() |
encodeWithCoder, setShowsTabBadge, setTabImage, setTabSystemItem, setTabTitle, setUserInfo, showsTabBadge, tabImage, tabSystemItem, tabTitle, userInfoaccessibilityActivate, 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 CPNowPlayingTemplate(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public void addObserver(CPNowPlayingTemplateObserver observer)
public static CPNowPlayingTemplate alloc()
public static CPNowPlayingTemplate allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
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()
public CPNowPlayingTemplate init()
init in class CPTemplatepublic CPNowPlayingTemplate initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class CPTemplatepublic 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 boolean isAlbumArtistButtonEnabled()
Set the value of this property to @c YES to enable the button.
Defaults to NO.
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public boolean isUpNextButtonEnabled()
Set the value of this property to @c YES to enable the button.
Defaults to NO.
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CPNowPlayingTemplate new_objc()
public NSArray<? extends CPNowPlayingButton> nowPlayingButtons()
Your application may specify a maximum of 5 now playing buttons.
Buttons are filled in array order, from the leading side to the trailing side of the screen.
public void removeObserver(CPNowPlayingTemplateObserver observer)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setAlbumArtistButtonEnabled(boolean value)
Set the value of this property to @c YES to enable the button.
Defaults to NO.
public void setUpNextButtonEnabled(boolean value)
Set the value of this property to @c YES to enable the button.
Defaults to NO.
public void setUpNextTitle(java.lang.String value)
upNextButtonEnabled].public static void setVersion_static(long aVersion)
public static CPNowPlayingTemplate sharedTemplate()
You should present this shared instance when your app needs to present now playing, for example in response to the user selecting a playable item.
When the system needs to present now playing on behalf of your app, it will present this shared instance.
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class CPTemplatepublic java.lang.String upNextTitle()
upNextButtonEnabled].public void updateNowPlayingButtons(NSArray<? extends CPNowPlayingButton> nowPlayingButtons)
public static long version_static()