convert_sdk_info_flutter.dart 1006 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:flutter/services.dart';
  2. /// convert_sdk_info_flutter.dart
  3. ///
  4. /// Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
  5. ///
  6. /// THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  7. /// AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  8. /// UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  9. /// This notice may not be removed from this file.
  10. class ConvertSDKInfoFlutter{
  11. static const MethodChannel _channel =
  12. MethodChannel('com.compdfkit.conversion.flutter.convert.sdk.info');
  13. ///get conversion sdk version info
  14. static Future<String> getConversionSDKVersion() async {
  15. var versionInfo = await _channel.invokeMethod('request_convert_sdk_version' );
  16. return versionInfo;
  17. }
  18. static Future<String> getOutputPath() async{
  19. var outPutPath = await _channel.invokeMethod('request_convert_output_path');
  20. return outPutPath;
  21. }
  22. }