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:
		| @@ -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 | ||||
|     ] | ||||
|   }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user