CoreApiImpl.swift 785 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // CoreApiImpl.swift
  3. // Runner
  4. //
  5. // Created by 胖胖虎 on 2025/9/30.
  6. //
  7. class CoreApiImpl: CoreApi {
  8. let controller: FlutterViewController
  9. init(controller: FlutterViewController) {
  10. self.controller = controller
  11. }
  12. func getApps() -> String? {
  13. return "getApps"
  14. }
  15. func getSystemLocale() -> String? {
  16. return "getSystemLocale"
  17. }
  18. func connect() -> Bool? {
  19. return true
  20. }
  21. func disconnect() -> Bool? {
  22. return true
  23. }
  24. func getRemoteIp() -> String? {
  25. return "getRemoteIp"
  26. }
  27. func getAdvertisingId() -> String? {
  28. return "getAdvertisingId"
  29. }
  30. func moveTaskToBack() -> Bool? {
  31. return true
  32. }
  33. func isConnected() -> Bool? {
  34. return true
  35. }
  36. }