Class CPNowPlayingButton

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
CPNowPlayingAddToLibraryButton, CPNowPlayingImageButton, CPNowPlayingMoreButton, CPNowPlayingPlaybackRateButton, CPNowPlayingRepeatButton, CPNowPlayingShuffleButton

public class CPNowPlayingButton
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 14.0 and later.
  • Constructor Details

    • CPNowPlayingButton

      protected CPNowPlayingButton()
    • CPNowPlayingButton

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

      protected CPNowPlayingButton​(NSObject.SkipInit skipInit)
    • CPNowPlayingButton

      public CPNowPlayingButton​(VoidBlock1<CPNowPlayingButton> handler)
    • CPNowPlayingButton

      public CPNowPlayingButton​(NSCoder coder)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled​(boolean v)
    • isSelected

      public boolean isSelected()
    • setSelected

      public void setSelected​(boolean v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getMaximumImageSize

      public static CGSize getMaximumImageSize()
    • init

      protected long init​(VoidBlock1<CPNowPlayingButton> handler)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)