getConsentStatusForSDK static method

Future<int> getConsentStatusForSDK(
  1. String sdkId
)

Returns the consent status for the input SDK; 0 = consent not given, 1 = consent given, -1 = invalid SDKID.

Implementation

static Future<int> getConsentStatusForSDK(String sdkId) async {
  final int status = await _channel
      .invokeMethod('getConsentStatusForSDK', {'forSdk': sdkId});
  return status;
}