Package apple.avkit
Class AVPictureInPictureController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avkit.AVPictureInPictureController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVPictureInPictureController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVPictureInPictureControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanStartPictureInPictureAutomaticallyFromInline()[@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.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()AVPictureInPictureControllerDelegatedelegate()[@property] delegate The receiver's delegate.static java.lang.Stringdescription_static()static longhash_static()AVPictureInPictureControllerinit()AVPictureInPictureControllerinitWithPlayerLayer(AVPlayerLayer playerLayer)initWithPlayerLayer: Designated initializer.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisPictureInPictureActive()[@property] pictureInPictureActive Whether or not Picture in Picture is currently active.booleanisPictureInPicturePossible()[@property] pictureInPicturePossible Whether or not Picture in Picture is currently possible.static booleanisPictureInPictureSupported()isPictureInPictureSupported Whether or not Picture in Picture is supported on the current device.booleanisPictureInPictureSuspended()[@property] pictureInPictureSuspended Whether or not Picture in Picture is currently suspended.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static UIImagepictureInPictureButtonStartImage()[@property] pictureInPictureButtonStartImage System default Picture in Picture start template image for use in client's Picture in Picture button.static UIImagepictureInPictureButtonStartImageCompatibleWithTraitCollection(UITraitCollection traitCollection)pictureInPictureButtonStartImageCompatibleWithTraitCollection: System default Picture in Picture start template image for use in client's Picture in Picture button.static UIImagepictureInPictureButtonStopImage()[@property] pictureInPictureButtonStopImage System default Picture in Picture stop template image for use in client's Picture in Picture button.static UIImagepictureInPictureButtonStopImageCompatibleWithTraitCollection(UITraitCollection traitCollection)pictureInPictureButtonStopImageCompatibleWithTraitCollection: System default Picture in Picture stop template image for use in client's Picture in Picture button.AVPlayerLayerplayerLayer()[@property] playerLayer The receiver's player layer.booleanrequiresLinearPlayback()[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing).static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetCanStartPictureInPictureAutomaticallyFromInline(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.voidsetDelegate(AVPictureInPictureControllerDelegate value)[@property] delegate The receiver's delegate.voidsetDelegate_unsafe(AVPictureInPictureControllerDelegate value)[@property] delegate The receiver's delegate.voidsetRequiresLinearPlayback(boolean value)[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing).static voidsetVersion_static(long aVersion)voidstartPictureInPicture()startPictureInPicture Start Picture in Picture for the provided AVPlayerLayer if possible.voidstopPictureInPicture()stopPictureInPicture Stop the local Picture in Picture if currently active.static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVPictureInPictureController alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static 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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isPictureInPictureSupported
public static boolean isPictureInPictureSupported()
isPictureInPictureSupported Whether or not Picture in Picture is supported on the current device. When NO, all initializers will return nil.
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
pictureInPictureButtonStartImageCompatibleWithTraitCollection
public static UIImage pictureInPictureButtonStartImageCompatibleWithTraitCollection(UITraitCollection traitCollection)
pictureInPictureButtonStartImageCompatibleWithTraitCollection: System default Picture in Picture start template image for use in client's Picture in Picture button.- Parameters:
traitCollection- Traits that describe the image to retrieve, pass nil to use traits that describe the main screen.
-
pictureInPictureButtonStopImageCompatibleWithTraitCollection
public static UIImage pictureInPictureButtonStopImageCompatibleWithTraitCollection(UITraitCollection traitCollection)
pictureInPictureButtonStopImageCompatibleWithTraitCollection: System default Picture in Picture stop template image for use in client's Picture in Picture button.- Parameters:
traitCollection- Traits that describe the image to retrieve, pass nil to use traits that describe the main screen.
-
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()
-
delegate
public AVPictureInPictureControllerDelegate delegate()
[@property] delegate The receiver's delegate.
-
init
public AVPictureInPictureController init()
-
initWithPlayerLayer
public AVPictureInPictureController initWithPlayerLayer(AVPlayerLayer playerLayer)
initWithPlayerLayer: Designated initializer.- Parameters:
playerLayer- The player layer from which to source the media content for the Picture in Picture controller.
-
isPictureInPictureActive
public boolean isPictureInPictureActive()
[@property] pictureInPictureActive Whether or not Picture in Picture is currently active.
-
isPictureInPicturePossible
public boolean isPictureInPicturePossible()
[@property] pictureInPicturePossible Whether or not Picture in Picture is currently possible.
-
isPictureInPictureSuspended
public boolean isPictureInPictureSuspended()
[@property] pictureInPictureSuspended Whether or not Picture in Picture is currently suspended.
-
playerLayer
public AVPlayerLayer playerLayer()
[@property] playerLayer The receiver's player layer.
-
setDelegate_unsafe
public void setDelegate_unsafe(AVPictureInPictureControllerDelegate value)
[@property] delegate The receiver's delegate.
-
setDelegate
public void setDelegate(AVPictureInPictureControllerDelegate value)
[@property] delegate The receiver's delegate.
-
startPictureInPicture
public void startPictureInPicture()
startPictureInPicture Start Picture in Picture for the provided AVPlayerLayer if possible. Receiver will call -pictureInPictureControllerWillStartPictureInPicture: if Picture in Picture is currently possible and -pictureInPictureControllerDidStartPictureInPicture: after a successful start. If starting Picture in Picture fails, -pictureInPictureControllerFailedToStartPictureInPicture:withError: is called on the delegate instead. Client can stop Picture in Picture by calling -stopPictureInPicture. In addition the user can stop Picture in Picture through user interaction. It is also possible that Picture in Picture is stopped by the Picture in Picture controller at any time. In all these cases receiver calls -pictureInPictureControllerWillStopPictureInPicture: on the delegate and -pictureInPictureControllerDidStopPictureInPicture:after the stop animation completed.
-
stopPictureInPicture
public void stopPictureInPicture()
stopPictureInPicture Stop the local Picture in Picture if currently active. On tvOS, this can also stop Picture in Picture sessions for other applications. See startPictureInPicture for details.
-
pictureInPictureButtonStartImage
public static UIImage pictureInPictureButtonStartImage()
[@property] pictureInPictureButtonStartImage System default Picture in Picture start template image for use in client's Picture in Picture button.
-
pictureInPictureButtonStopImage
public static UIImage pictureInPictureButtonStopImage()
[@property] pictureInPictureButtonStopImage System default Picture in Picture stop template image for use in client's Picture in Picture button.
-
requiresLinearPlayback
public boolean requiresLinearPlayback()
[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing). This can be used to temporarily enforce playback of mandatory content (such as legalese or advertisements).
-
setRequiresLinearPlayback
public void setRequiresLinearPlayback(boolean value)
[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing). This can be used to temporarily enforce playback of mandatory content (such as legalese or advertisements).
-
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.
-
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.
-
-