Classes

以下类在全球范围内可用.

  • UIApplicationDelegate子类,用于需要默认行为的简单应用.

    This class implements the following behaviors:

    • 状态栏触摸被转发到键窗口的根视图FlutterViewController ,以触发滚动到顶部.
    • 手机屏幕锁定时,在调试模式下保持Flutter连接打开.

    应用为代表的应用扑不需要继承这个类. 定制应用程序委托类的开发人员应根据需要从FlutterAppDelegate.mm复制并粘贴代码.

    See more

    Declaration

    Objective-C

    @interface FlutterAppDelegate
        : UIResponder <UIApplicationDelegate, FlutterPluginRegistry,
                       FlutterAppLifeCycleProvider>
  • 使用基本的异步消息传递与Flutter进行通信的通道.

    See more

    Declaration

    Objective-C

    @interface FlutterBasicMessageChannel : NSObject
  • 一个使用异步方法与Flutter进行通信的通道.

    See more

    Declaration

    Objective-C

    @interface FlutterMethodChannel : NSObject
  • 使用事件流与Flutter进行通信的通道.

    See more

    Declaration

    Objective-C

    @interface FlutterEventChannel : NSObject
  • Deprecated

    应该使用FlutterEngine而不是FlutterHeadlessDartRunner

    不推荐使用的FlutterHeadlessDartRunner运行带有空栅格化器且没有原始绘图图面的Flutter Dart代码. 它适合在运行Dart代码时使用,例如在插件的后台运行.

    大多数呼叫者应该更喜欢直接使用FlutterEngine . 该接口用于旧式支持.

    See more

    Declaration

    Objective-C

    
    @interface FlutterHeadlessDartRunner : FlutterEngine
  • UIAppDelegate回调传播到已注册的插件.

    See more

    Declaration

    Objective-C

    @interface FlutterPluginAppLifeCycleDelegate
        : NSObject <UNUserNotificationCenterDelegate>