1#import <ScreenCaptureKit/ScreenCaptureKit.h>
2
3@interface MyClass : NSObject <SCStreamOutput, SCStreamDelegate>
4@end
5
6@implementation MyClass
7
8- (void)stream:(SCStream *)stream
9 didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
10 ofType:(SCStreamOutputType)type {
11 printf("dummy capture handler called");
12}
13
14- (void)stream:(SCStream *)stream didStopWithError:(NSError *)error {
15 printf("dummy did stop with error called");
16}
17
18int main() {
19 [[MyClass alloc] init];
20}
21
22@end