Class MPNowPlayingSession

  • All Implemented Interfaces:
    NSObject

    public class MPNowPlayingSession
    extends NSObject
    API-Since: 16.0
    • Constructor Detail

      • MPNowPlayingSession

        protected MPNowPlayingSession​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addPlayer

        public void addPlayer​(@NotNull
                              @NotNull AVPlayer player)
        Add AVPlayer instance to this session.
      • allocWithZone

        public static MPNowPlayingSession allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • automaticallyPublishesNowPlayingInfo

        public boolean automaticallyPublishesNowPlayingInfo()
        When YES, now playing info will be automatically published, and nowPlayingInfoCenter must not be used. Now playing info keys to be incorporated by automatic publishing can be set on the AVPlayerItem's nowPlayingInfo property. API-Since: 16.0
      • canBecomeActive

        public boolean canBecomeActive()
        Returns a Boolean value indicating whether this session can become the App's active now playing session.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithPlayers

        public MPNowPlayingSession initWithPlayers​(@NotNull
                                                   @NotNull NSArray<? extends AVPlayer> players)
        Creates a session associated with a given AVPlayer instance. This will assert if players is nil or empty.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isActive

        public boolean isActive()
        Returns a Boolean value indicating whether this session is the App's active now playing session.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • nowPlayingInfoCenter

        @NotNull
        public @NotNull MPNowPlayingInfoCenter nowPlayingInfoCenter()
        The now playing info center that is associated with this session.
      • players

        @NotNull
        public @NotNull NSArray<? extends AVPlayer> players()
        AVPlayer instances associated with this session.
      • remoteCommandCenter

        @NotNull
        public @NotNull MPRemoteCommandCenter remoteCommandCenter()
        The remote command center that is associated with this session.
      • removePlayer

        public void removePlayer​(@NotNull
                                 @NotNull AVPlayer player)
        Remove AVPlayer instance from this session.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAutomaticallyPublishesNowPlayingInfo

        public void setAutomaticallyPublishesNowPlayingInfo​(boolean value)
        When YES, now playing info will be automatically published, and nowPlayingInfoCenter must not be used. Now playing info keys to be incorporated by automatic publishing can be set on the AVPlayerItem's nowPlayingInfo property. API-Since: 16.0
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.