25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
535 B

  1. import Flutter
  2. import UIKit
  3. public class SwiftPlatformDeviceIdPlugin: NSObject, FlutterPlugin {
  4. public static func register(with registrar: FlutterPluginRegistrar) {
  5. let channel = FlutterMethodChannel(name: "platform_device_id", binaryMessenger: registrar.messenger())
  6. let instance = SwiftPlatformDeviceIdPlugin()
  7. registrar.addMethodCallDelegate(instance, channel: channel)
  8. }
  9. public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
  10. result("iOS " + UIDevice.current.systemVersion)
  11. }
  12. }