setTrackStatus method

  1. @override
Future<void> setTrackStatus(
  1. GE_TRACK_STATUS status
)
override

设置数据上报状态

上报状态,详见 GE_TRACK_STATUS 定义

Implementation

@override
Future<void> setTrackStatus(GE_TRACK_STATUS status) async {
  try {
    methodChannel.invokeMethod('setTrackStatus', {'status': status.index});
  } on PlatformException catch (e) {
    print('setTrackStatus fail: ${e.message}');
  }
}