| // Copyright 2013 The Flutter Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| import 'package:flutter/foundation.dart'; |
| import 'package:flutter/services.dart'; |
| |
| import 'camera_android_camerax_platform_interface.dart'; |
| |
| /// An implementation of [CameraAndroidCameraxPlatform] that uses method channels. |
| class MethodChannelCameraAndroidCamerax extends CameraAndroidCameraxPlatform { |
| /// The method channel used to interact with the native platform. |
| @visibleForTesting |
| final MethodChannel methodChannel = |
| const MethodChannel('camera_android_camerax'); |
| |
| @override |
| Future<String?> getPlatformVersion() async { |
| final String? version = |
| await methodChannel.invokeMethod<String>('getPlatformVersion'); |
| return version; |
| } |
| } |