docs: Add Kotlin & Swift FP plugins examples (#1902)

* chore(docs): add Kotlin FP example

* chore(docs): add Swift FP plugin
This commit is contained in:
Mateusz Mędrek
2023-10-03 11:33:48 +02:00
committed by GitHub
parent b24b1c808f
commit 62e786ad04
14 changed files with 220 additions and 19 deletions

View File

@@ -18,7 +18,7 @@
@implementation ExampleFrameProcessorPlugin
- (id)callback:(Frame *)frame withArguments:(NSArray<id> *)arguments {
- (id)callback:(Frame *)frame withArguments:(NSDictionary *)arguments {
CVPixelBufferRef imageBuffer = CMSampleBufferGetImageBuffer(frame.buffer);
NSLog(@"ExamplePlugin: %zu x %zu Image. Logging %lu parameters:", CVPixelBufferGetWidth(imageBuffer), CVPixelBufferGetHeight(imageBuffer), (unsigned long)arguments.count);
@@ -28,11 +28,11 @@
return @{
@"example_str": @"Test",
@"example_bool": @true,
@"example_bool": @(YES),
@"example_double": @5.3,
@"example_array": @[
@"Hello",
@true,
@(YES),
@17.38
]
};