startService method

  1. @override
Future<void> startService({
  1. bool isAnchor = true,
  2. String title = '',
  3. String content = '',
  4. String roomParams = '',
})
override

Implementation

@override
Future<void> startService({bool isAnchor=true,String title='',String content='',String roomParams=''}) async {

  return await methodChannel.invokeMethod<dynamic>('startService'
  ,{
        "mode": isAnchor ? 1 : 0, // 1 = 主播, 0 = 观众
        "title": title,
        "content": content,
        "roomParams": roomParams,
      }
  );
}