setAppChannel static method

Future<Null> setAppChannel(
  1. String channel
)

自定义渠道标识,Android 专用

Implementation

static Future<Null> setAppChannel(String channel) async {
  assert(Platform.isAndroid, 'setAppChannel only supports on Android.');
  if (Platform.isAndroid) {
    Map<String, Object> map = {"channel": channel};
    await _channel.invokeMethod('setAppChannel', map);
  }
}