getReportPolicyThreshold method

Future<int?> getReportPolicyThreshold(
  1. String policyType
)

Obtains the threshold for event reporting.

@param reportPolicyType : Event reporting policy name. note This function is specifically used by Android Platforms.

Implementation

Future<int?> getReportPolicyThreshold(String policyType) async {
  if (Platform.isAndroid) {
    return await _channel.invokeMethod(
        'getReportPolicyThreshold', {'reportPolicyType': policyType});
  }else{
    return null;
  }
}