//
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
//

#import <AVKit/AVKit.h>

NS_ASSUME_NONNULL_BEGIN

@class IVSPlayerLayer;

/// Extends `AVPictureInPictureControllerContentSource` with `IVSPlayerLayer` support.
API_AVAILABLE(ios(15.0), tvos(15.0))
NS_SWIFT_UI_ACTOR
@interface AVPictureInPictureControllerContentSource (IVSPlayer)

/// Create an instance of `AVPictureInPictureControllerContentSource` with an `IVSPlayerLayer` instance.
/// @param playerLayer The `IVSPlayerLayer` instance used for playback.
- (nullable instancetype)initWithIVSPlayerLayer:(IVSPlayerLayer *)playerLayer;

/// The `IVSPlayerLayer` instance associated with this Picture in Picture content source; nil otherwise.
@property (nonatomic, readonly, nullable) IVSPlayerLayer *ivsPlayerLayer;

@end

NS_ASSUME_NONNULL_END
