getConsentStatusForCategory static method
Returns the consent status for the inputted category; 0 = consent not given, 1 = consent given, -1 = invalid category, or SDK not yet initialized.
Implementation
static Future<int> getConsentStatusForCategory(String categoryId) async {
final int status = await _channel.invokeMethod(
'getConsentStatusForCategory', {'forCategory': categoryId});
return status;
}