1
1
// Copyright 2013 The Flutter Authors
2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
- // Autogenerated from Pigeon (v22.4.2 ), do not edit directly.
4
+ // Autogenerated from Pigeon (v22.7.4 ), do not edit directly.
5
5
// See also: https://pub.dev/packages/pigeon
6
6
7
7
#import " ./include/camera_avfoundation/messages.g.h"
@@ -49,6 +49,16 @@ - (instancetype)initWithValue:(FCPPlatformCameraLensDirection)value {
49
49
}
50
50
@end
51
51
52
+ @implementation FCPPlatformCameraLensTypeBox
53
+ - (instancetype )initWithValue : (FCPPlatformCameraLensType)value {
54
+ self = [super init ];
55
+ if (self) {
56
+ _value = value;
57
+ }
58
+ return self;
59
+ }
60
+ @end
61
+
52
62
@implementation FCPPlatformDeviceOrientationBox
53
63
- (instancetype )initWithValue : (FCPPlatformDeviceOrientation)value {
54
64
self = [super init ];
@@ -152,10 +162,12 @@ + (nullable FCPPlatformSize *)nullableFromList:(NSArray<id> *)list;
152
162
153
163
@implementation FCPPlatformCameraDescription
154
164
+ (instancetype )makeWithName : (NSString *)name
155
- lensDirection : (FCPPlatformCameraLensDirection)lensDirection {
165
+ lensDirection : (FCPPlatformCameraLensDirection)lensDirection
166
+ lensType : (FCPPlatformCameraLensType)lensType {
156
167
FCPPlatformCameraDescription *pigeonResult = [[FCPPlatformCameraDescription alloc ] init ];
157
168
pigeonResult.name = name;
158
169
pigeonResult.lensDirection = lensDirection;
170
+ pigeonResult.lensType = lensType;
159
171
return pigeonResult;
160
172
}
161
173
+ (FCPPlatformCameraDescription *)fromList : (NSArray <id> *)list {
@@ -164,6 +176,8 @@ + (FCPPlatformCameraDescription *)fromList:(NSArray<id> *)list {
164
176
FCPPlatformCameraLensDirectionBox *boxedFCPPlatformCameraLensDirection =
165
177
GetNullableObjectAtIndex (list, 1 );
166
178
pigeonResult.lensDirection = boxedFCPPlatformCameraLensDirection.value ;
179
+ FCPPlatformCameraLensTypeBox *boxedFCPPlatformCameraLensType = GetNullableObjectAtIndex (list, 2 );
180
+ pigeonResult.lensType = boxedFCPPlatformCameraLensType.value ;
167
181
return pigeonResult;
168
182
}
169
183
+ (nullable FCPPlatformCameraDescription *)nullableFromList : (NSArray <id> *)list {
@@ -173,6 +187,7 @@ + (nullable FCPPlatformCameraDescription *)nullableFromList:(NSArray<id> *)list
173
187
return @[
174
188
self .name ?: [NSNull null ],
175
189
[[FCPPlatformCameraLensDirectionBox alloc ] initWithValue: self .lensDirection],
190
+ [[FCPPlatformCameraLensTypeBox alloc ] initWithValue: self .lensType],
176
191
];
177
192
}
178
193
@end
@@ -315,56 +330,62 @@ - (nullable id)readValueOfType:(UInt8)type {
315
330
initWithValue: [enumAsNumber integerValue ]];
316
331
}
317
332
case 130 : {
333
+ NSNumber *enumAsNumber = [self readValue ];
334
+ return enumAsNumber == nil
335
+ ? nil
336
+ : [[FCPPlatformCameraLensTypeBox alloc ] initWithValue: [enumAsNumber integerValue ]];
337
+ }
338
+ case 131 : {
318
339
NSNumber *enumAsNumber = [self readValue ];
319
340
return enumAsNumber == nil ? nil
320
341
: [[FCPPlatformDeviceOrientationBox alloc ]
321
342
initWithValue: [enumAsNumber integerValue ]];
322
343
}
323
- case 131 : {
344
+ case 132 : {
324
345
NSNumber *enumAsNumber = [self readValue ];
325
346
return enumAsNumber == nil
326
347
? nil
327
348
: [[FCPPlatformExposureModeBox alloc ] initWithValue: [enumAsNumber integerValue ]];
328
349
}
329
- case 132 : {
350
+ case 133 : {
330
351
NSNumber *enumAsNumber = [self readValue ];
331
352
return enumAsNumber == nil
332
353
? nil
333
354
: [[FCPPlatformFlashModeBox alloc ] initWithValue: [enumAsNumber integerValue ]];
334
355
}
335
- case 133 : {
356
+ case 134 : {
336
357
NSNumber *enumAsNumber = [self readValue ];
337
358
return enumAsNumber == nil
338
359
? nil
339
360
: [[FCPPlatformFocusModeBox alloc ] initWithValue: [enumAsNumber integerValue ]];
340
361
}
341
- case 134 : {
362
+ case 135 : {
342
363
NSNumber *enumAsNumber = [self readValue ];
343
364
return enumAsNumber == nil ? nil
344
365
: [[FCPPlatformImageFileFormatBox alloc ]
345
366
initWithValue: [enumAsNumber integerValue ]];
346
367
}
347
- case 135 : {
368
+ case 136 : {
348
369
NSNumber *enumAsNumber = [self readValue ];
349
370
return enumAsNumber == nil ? nil
350
371
: [[FCPPlatformImageFormatGroupBox alloc ]
351
372
initWithValue: [enumAsNumber integerValue ]];
352
373
}
353
- case 136 : {
374
+ case 137 : {
354
375
NSNumber *enumAsNumber = [self readValue ];
355
376
return enumAsNumber == nil ? nil
356
377
: [[FCPPlatformResolutionPresetBox alloc ]
357
378
initWithValue: [enumAsNumber integerValue ]];
358
379
}
359
- case 137 :
360
- return [FCPPlatformCameraDescription fromList: [self readValue ]];
361
380
case 138 :
362
- return [FCPPlatformCameraState fromList: [self readValue ]];
381
+ return [FCPPlatformCameraDescription fromList: [self readValue ]];
363
382
case 139 :
364
- return [FCPPlatformMediaSettings fromList: [self readValue ]];
383
+ return [FCPPlatformCameraState fromList: [self readValue ]];
365
384
case 140 :
366
- return [FCPPlatformPoint fromList: [self readValue ]];
385
+ return [FCPPlatformMediaSettings fromList: [self readValue ]];
367
386
case 141 :
387
+ return [FCPPlatformPoint fromList: [self readValue ]];
388
+ case 142 :
368
389
return [FCPPlatformSize fromList: [self readValue ]];
369
390
default :
370
391
return [super readValueOfType: type];
@@ -380,48 +401,52 @@ - (void)writeValue:(id)value {
380
401
FCPPlatformCameraLensDirectionBox *box = (FCPPlatformCameraLensDirectionBox *)value;
381
402
[self writeByte: 129 ];
382
403
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
404
+ } else if ([value isKindOfClass: [FCPPlatformCameraLensTypeBox class ]]) {
405
+ FCPPlatformCameraLensTypeBox *box = (FCPPlatformCameraLensTypeBox *)value;
406
+ [self writeByte: 130 ];
407
+ [self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
383
408
} else if ([value isKindOfClass: [FCPPlatformDeviceOrientationBox class ]]) {
384
409
FCPPlatformDeviceOrientationBox *box = (FCPPlatformDeviceOrientationBox *)value;
385
- [self writeByte: 130 ];
410
+ [self writeByte: 131 ];
386
411
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
387
412
} else if ([value isKindOfClass: [FCPPlatformExposureModeBox class ]]) {
388
413
FCPPlatformExposureModeBox *box = (FCPPlatformExposureModeBox *)value;
389
- [self writeByte: 131 ];
414
+ [self writeByte: 132 ];
390
415
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
391
416
} else if ([value isKindOfClass: [FCPPlatformFlashModeBox class ]]) {
392
417
FCPPlatformFlashModeBox *box = (FCPPlatformFlashModeBox *)value;
393
- [self writeByte: 132 ];
418
+ [self writeByte: 133 ];
394
419
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
395
420
} else if ([value isKindOfClass: [FCPPlatformFocusModeBox class ]]) {
396
421
FCPPlatformFocusModeBox *box = (FCPPlatformFocusModeBox *)value;
397
- [self writeByte: 133 ];
422
+ [self writeByte: 134 ];
398
423
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
399
424
} else if ([value isKindOfClass: [FCPPlatformImageFileFormatBox class ]]) {
400
425
FCPPlatformImageFileFormatBox *box = (FCPPlatformImageFileFormatBox *)value;
401
- [self writeByte: 134 ];
426
+ [self writeByte: 135 ];
402
427
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
403
428
} else if ([value isKindOfClass: [FCPPlatformImageFormatGroupBox class ]]) {
404
429
FCPPlatformImageFormatGroupBox *box = (FCPPlatformImageFormatGroupBox *)value;
405
- [self writeByte: 135 ];
430
+ [self writeByte: 136 ];
406
431
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
407
432
} else if ([value isKindOfClass: [FCPPlatformResolutionPresetBox class ]]) {
408
433
FCPPlatformResolutionPresetBox *box = (FCPPlatformResolutionPresetBox *)value;
409
- [self writeByte: 136 ];
434
+ [self writeByte: 137 ];
410
435
[self writeValue: (value == nil ? [NSNull null ] : [NSNumber numberWithInteger: box.value])];
411
436
} else if ([value isKindOfClass: [FCPPlatformCameraDescription class ]]) {
412
- [self writeByte: 137 ];
437
+ [self writeByte: 138 ];
413
438
[self writeValue: [value toList ]];
414
439
} else if ([value isKindOfClass: [FCPPlatformCameraState class ]]) {
415
- [self writeByte: 138 ];
440
+ [self writeByte: 139 ];
416
441
[self writeValue: [value toList ]];
417
442
} else if ([value isKindOfClass: [FCPPlatformMediaSettings class ]]) {
418
- [self writeByte: 139 ];
443
+ [self writeByte: 140 ];
419
444
[self writeValue: [value toList ]];
420
445
} else if ([value isKindOfClass: [FCPPlatformPoint class ]]) {
421
- [self writeByte: 140 ];
446
+ [self writeByte: 141 ];
422
447
[self writeValue: [value toList ]];
423
448
} else if ([value isKindOfClass: [FCPPlatformSize class ]]) {
424
- [self writeByte: 141 ];
449
+ [self writeByte: 142 ];
425
450
[self writeValue: [value toList ]];
426
451
} else {
427
452
[super writeValue: value];
0 commit comments