Package apple.avkit

Class AVPlayerViewController

    • Constructor Detail

      • AVPlayerViewController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AVPlayerViewController allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • attemptRotationToDeviceOrientation

        @Deprecated
        public static void attemptRotationToDeviceOrientation()
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • 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()
      • instanceMethodSignatureForSelector

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

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • 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)
      • resolveClassMethod

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

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • 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()
      • allowsPictureInPicturePlayback

        public boolean allowsPictureInPicturePlayback()
        [@property] allowsPictureInPicturePlayback Whether or not the receiver allows Picture in Picture playback. Default is YES. API-Since: 9.0
      • contentOverlayView

        @Nullable
        public @Nullable UIView contentOverlayView()
        [@property] contentOverlayView Use the content overlay view to add additional custom views between the video content and the controls.
      • initWithNibNameBundle

        public AVPlayerViewController initWithNibNameBundle​(@Nullable
                                                            @Nullable java.lang.String nibNameOrNil,
                                                            @Nullable
                                                            @Nullable NSBundle nibBundleOrNil)
        Description copied from class: UIViewController
        The designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.
        Overrides:
        initWithNibNameBundle in class UIViewController
      • isReadyForDisplay

        public boolean isReadyForDisplay()
        [@property] readyForDisplay Boolean indicating that the first video frame has been made ready for display for the current item of the associated AVPlayer.
      • player

        @Nullable
        public @Nullable AVPlayer player()
        [@property] player The player from which to source the media content for the view controller.
      • setAllowsPictureInPicturePlayback

        public void setAllowsPictureInPicturePlayback​(boolean value)
        [@property] allowsPictureInPicturePlayback Whether or not the receiver allows Picture in Picture playback. Default is YES. API-Since: 9.0
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable AVPlayerViewControllerDelegate value)
        [@property] delegate The receiver's delegate. API-Since: 9.0
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable AVPlayerViewControllerDelegate value)
        [@property] delegate The receiver's delegate. API-Since: 9.0
      • setPlayer

        public void setPlayer​(@Nullable
                              @Nullable AVPlayer value)
        [@property] player The player from which to source the media content for the view controller.
      • setShowsPlaybackControls

        public void setShowsPlaybackControls​(boolean value)
        [@property] showsPlaybackControls Whether or not the receiver shows playback controls. Default is YES. Clients can set this property to NO when they don't want to have any playback controls on top of the visual content (e.g. for a game splash screen).
      • setUpdatesNowPlayingInfoCenter

        public void setUpdatesNowPlayingInfoCenter​(boolean value)
        [@property] updatesNowPlayingInfoCenter Whether or not the now playing info center should be updated. Default is YES. API-Since: 10.0
      • setVideoGravity

        public void setVideoGravity​(@NotNull
                                    @NotNull java.lang.String value)
        [@property] videoGravity A string defining how the video is displayed within an AVPlayerLayer bounds rect. Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
      • showsPlaybackControls

        public boolean showsPlaybackControls()
        [@property] showsPlaybackControls Whether or not the receiver shows playback controls. Default is YES. Clients can set this property to NO when they don't want to have any playback controls on top of the visual content (e.g. for a game splash screen).
      • updatesNowPlayingInfoCenter

        public boolean updatesNowPlayingInfoCenter()
        [@property] updatesNowPlayingInfoCenter Whether or not the now playing info center should be updated. Default is YES. API-Since: 10.0
      • videoBounds

        public CGRect videoBounds()
        [@property] videoBounds The current size and position of the video image as displayed within the receiver's view's bounds.
      • videoGravity

        @NotNull
        public @NotNull java.lang.String videoGravity()
        [@property] videoGravity A string defining how the video is displayed within an AVPlayerLayer bounds rect. Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
      • entersFullScreenWhenPlaybackBegins

        public boolean entersFullScreenWhenPlaybackBegins()
        [@property] entersFullScreenWhenPlaybackBegins Whether or not the receiver automatically enters full screen when the play button is tapped. Default is NO. If YES, the receiver will show a user interface tailored to this behavior. API-Since: 11.0
      • exitsFullScreenWhenPlaybackEnds

        public boolean exitsFullScreenWhenPlaybackEnds()
        [@property] exitsFullScreenWhenPlaybackEnds Whether or not the receiver automatically exits full screen when playback ends. Default is NO. If multiple player items have been enqueued, the receiver exits fullscreen once no more items are remaining in the queue. API-Since: 11.0
      • setEntersFullScreenWhenPlaybackBegins

        public void setEntersFullScreenWhenPlaybackBegins​(boolean value)
        [@property] entersFullScreenWhenPlaybackBegins Whether or not the receiver automatically enters full screen when the play button is tapped. Default is NO. If YES, the receiver will show a user interface tailored to this behavior. API-Since: 11.0
      • setExitsFullScreenWhenPlaybackEnds

        public void setExitsFullScreenWhenPlaybackEnds​(boolean value)
        [@property] exitsFullScreenWhenPlaybackEnds Whether or not the receiver automatically exits full screen when playback ends. Default is NO. If multiple player items have been enqueued, the receiver exits fullscreen once no more items are remaining in the queue. API-Since: 11.0
      • pixelBufferAttributes

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> pixelBufferAttributes()
        [@property] pixelBufferAttributes The client requirements for the visual output during playback. Pixel buffer attribute keys are defined in API-Since: 9.0
      • setPixelBufferAttributes

        public void setPixelBufferAttributes​(@Nullable
                                             @Nullable NSDictionary<java.lang.String,​?> value)
        [@property] pixelBufferAttributes The client requirements for the visual output during playback. Pixel buffer attribute keys are defined in API-Since: 9.0
      • requiresLinearPlayback

        public boolean requiresLinearPlayback()
        [@property] requiresLinearPlayback Disables certain user operations, such as scanning, skipping, and scrubbing. This can be used to enforce playback of mandatory content (such as legalese or advertisements). API-Since: 11.0
      • setRequiresLinearPlayback

        public void setRequiresLinearPlayback​(boolean value)
        [@property] requiresLinearPlayback Disables certain user operations, such as scanning, skipping, and scrubbing. This can be used to enforce playback of mandatory content (such as legalese or advertisements). API-Since: 11.0
      • setShowsTimecodes

        public void setShowsTimecodes​(boolean value)
        [@property] showsTimecodes Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes. Default NO. API-Since: 13.0
      • showsTimecodes

        public boolean showsTimecodes()
        [@property] showsTimecodes Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes. Default NO. API-Since: 13.0
      • canStartPictureInPictureAutomaticallyFromInline

        public boolean canStartPictureInPictureAutomaticallyFromInline()
        [@property] canStartPictureInPictureAutomaticallyFromInline Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline. Default is NO. This property must only be set to YES for content intended to be the user's primary focus. API-Since: 14.2
      • setCanStartPictureInPictureAutomaticallyFromInline

        public void setCanStartPictureInPictureAutomaticallyFromInline​(boolean value)
        [@property] canStartPictureInPictureAutomaticallyFromInline Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline. Default is NO. This property must only be set to YES for content intended to be the user's primary focus. API-Since: 14.2
      • allowsVideoFrameAnalysis

        public boolean allowsVideoFrameAnalysis()
        [@property] allowsVideoFrameAnalysis When set to YES, the AVPlayerViewController will try to find objects, text and people while the media is paused. When an object is found, the user will be able to interact with it using long press to present a context menu. Default is YES. API-Since: 16.0
      • selectSpeed

        public void selectSpeed​(@NotNull
                                @NotNull AVPlaybackSpeed speed)
        [@property] selectSpeed Sets the input AVPlaybackSpeed as the selected speed. Calls to selectSpeed with AVPlaybackSpeeds not contained within the speeds property array will be ignored. API-Since: 16.0
        Parameters:
        speed - The playback speed to select.
      • selectedSpeed

        @Nullable
        public @Nullable AVPlaybackSpeed selectedSpeed()
        [@property] selectedSpeed The currently selected playback speed. Changes to the associated AVPlayer's defaultRate will be reflected in this property and vice versa. If the associated AVPlayer's defaultRate is set to a value that does not match a speed in the speeds list property, the selected speed will be nil. API-Since: 16.0
      • setAllowsVideoFrameAnalysis

        public void setAllowsVideoFrameAnalysis​(boolean value)
        [@property] allowsVideoFrameAnalysis When set to YES, the AVPlayerViewController will try to find objects, text and people while the media is paused. When an object is found, the user will be able to interact with it using long press to present a context menu. Default is YES. API-Since: 16.0
      • setSpeeds

        public void setSpeeds​(@NotNull
                              @NotNull NSArray<? extends AVPlaybackSpeed> value)
        [@property] speeds A list of user selectable playback speeds to be shown in the playback speed control. By default this property will be set to the systemDefaultSpeeds class property. Setting this property to an empty list will hide the playback speed selection UI. To set the currently selected playback speed programmatically, either set the defaultRate on the AVPlayer associated with this view controller or use the selectSpeed: method on AVPlayerViewController. API-Since: 16.0
      • speeds

        @NotNull
        public @NotNull NSArray<? extends AVPlaybackSpeed> speeds()
        [@property] speeds A list of user selectable playback speeds to be shown in the playback speed control. By default this property will be set to the systemDefaultSpeeds class property. Setting this property to an empty list will hide the playback speed selection UI. To set the currently selected playback speed programmatically, either set the defaultRate on the AVPlayer associated with this view controller or use the selectSpeed: method on AVPlayerViewController. API-Since: 16.0
      • setVideoFrameAnalysisTypes

        public void setVideoFrameAnalysisTypes​(long value)
        [@property] videoFrameAnalysisTypes The types of analysis AVPlayerViewController will perform on a paused video frame. The default value is AVVideoFrameAnalysisDefault. API-Since: 17.0
      • toggleLookupAction

        @NotNull
        public @NotNull UIAction toggleLookupAction()
        [@property] toggleLookupAction A UIAction used for enabling the visual lookup interface. Use this action to toggle visual lookup UI. This action's attributes will be set to disabled when there is no visual lookup data available or when the media is playing. Make sure to update your user interface to reflect this change. When the lookup UI is toggled, the state property is set to UIMenuElementStateOn; otherwise it will be set to UIMenuElementStateOff. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • videoFrameAnalysisTypes

        public long videoFrameAnalysisTypes()
        [@property] videoFrameAnalysisTypes The types of analysis AVPlayerViewController will perform on a paused video frame. The default value is AVVideoFrameAnalysisDefault. API-Since: 17.0