StikDebug/StikJIT/Utilities/PiP/PiPController.h
Stossy11 3919d5e43c
Add PIP to Script Logging (#219)
* Add PIP Stuff

* Add background video
2025-07-10 08:46:02 -04:00

29 lines
624 B
Objective-C

//
// PiPController.h
// StikDebug
//
// Created by Stossy11 on 10/07/2025.
//
#import <Foundation/Foundation.h>
#import <AVKit/AVKit.h>
#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface PiPController : NSObject <AVPictureInPictureControllerDelegate>
@property (nonatomic, assign) BOOL isPiPActive;
@property (nonatomic, strong, nullable) UIView *customUIView;
@property (class, nonatomic, readonly) PiPController *shared;
- (void)setupPiPWithPlayerLayer:(AVPlayerLayer *)playerLayer;
- (void)startPiP;
- (void)stopPiP;
- (void)togglePiP;
@end
NS_ASSUME_NONNULL_END