Package apple.avkit

Class AVPictureInPictureControllerContentSource

  • All Implemented Interfaces:
    NSObject

    public class AVPictureInPictureControllerContentSource
    extends NSObject
    AVPictureInPictureControllerContentSource A content source for AVPictureInPictureController. Create a content source with an appropriate layer, and use it to initialize the AVPictureInPictureController. API-Since: 15.0
    • Constructor Detail

      • AVPictureInPictureControllerContentSource

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • activeVideoCallContentViewController

        @NotNull
        public @NotNull AVPictureInPictureVideoCallViewController activeVideoCallContentViewController()
        [@property] activeVideoCallContentViewController This view controller will appear in the system's Picture in Picture window when Picture in Picture is active. This view controller may set a custom `preferredContentSize` which will influence both the aspect ratio and the size of the Picture in Picture window. When this view controller's appearance methods indicate that it has appeared on screen, content associated with the video call should be placed in its view hierarchy. Although apps can choose to move content from their source view to this view controller, it is also valid to show different views, as long as they represent the same video call. The content should always fill the view controller's view's bounds. Note that this view controller's view is not interactive and will not receive touches or other user input. API-Since: 15.0
      • activeVideoCallSourceView

        @Nullable
        public @Nullable UIView activeVideoCallSourceView()
        [@property] activeVideoCallSourceView When a video call is active and the application is foreground, this view contains content associated with the call. `AVPictureInPictureController` uses this view's layout frame and visibility to determine whether or not Picture in Picture should begin automatically when the app moves to background. The layout frame also influences the animation when entering and exiting Picture in Picture. API-Since: 15.0
      • 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()
      • 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()
      • initWithActiveVideoCallSourceViewContentViewController

        public AVPictureInPictureControllerContentSource initWithActiveVideoCallSourceViewContentViewController​(@NotNull
                                                                                                                @NotNull UIView sourceView,
                                                                                                                @NotNull
                                                                                                                @NotNull AVPictureInPictureVideoCallViewController contentViewController)
        initWithActiveVideoCallSourceView:contentViewController: Initializes a new `AVPictureInPictureControllerContentSource` suitable for supporting an active video call. This object should only be used for the duration of the call. API-Since: 15.0
        Parameters:
        sourceView - The view which contains content associated with the call.
        contentViewController - The view controller that should appear in the system's Picture in Picture window.
      • initWithPlayerLayer

        public AVPictureInPictureControllerContentSource initWithPlayerLayer​(@NotNull
                                                                             @NotNull AVPlayerLayer playerLayer)
        initWithPlayerLayer: Use this initializer for a content source with a player layer.
        Parameters:
        playerLayer - The player layer to be shown in Picture in Picture.
      • initWithSampleBufferDisplayLayerPlaybackDelegate

        public AVPictureInPictureControllerContentSource initWithSampleBufferDisplayLayerPlaybackDelegate​(@NotNull
                                                                                                          @NotNull AVSampleBufferDisplayLayer sampleBufferDisplayLayer,
                                                                                                          @NotNull
                                                                                                          @NotNull AVPictureInPictureSampleBufferPlaybackDelegate playbackDelegate)
        initWithSampleBufferDisplayLayer: Use this initializer for a content source with a sample buffer display layer and playback delegate.
        Parameters:
        sampleBufferDisplayLayer - The sample buffer display layer to be shown in Picture in Picture.
        playbackDelegate - The playback delegate for controlling sample buffer display layer's playback in Picture in Picture.
      • 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)
      • playerLayer

        @Nullable
        public @Nullable AVPlayerLayer playerLayer()
        [@property] playerLayer The receiver's player layer.
      • resolveClassMethod

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

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

        @Nullable
        public @Nullable AVSampleBufferDisplayLayer sampleBufferDisplayLayer()
        [@property] sampleBufferDisplayLayer The receiver's sample buffer display layer.
      • 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.