subscribeMsg method

  1. @override
Future<void> subscribeMsg({
  1. required int scene,
  2. required String templateId,
  3. String? reserved,
})
override

一次性订阅消息

Implementation

@override
Future<void> subscribeMsg({
  required int scene,
  required String templateId,
  String? reserved,
}) {
  assert(templateId.length <= 1024);
  assert(reserved == null || reserved.length <= 1024);
  return methodChannel.invokeMethod<void>(
    'subscribeMsg',
    <String, dynamic>{
      'scene': scene,
      'templateId': templateId,
      if (reserved != null) 'reserved': reserved,
    },
  );
}