canShowContentForPlacement method

  1. @override
Future<bool> canShowContentForPlacement(
  1. String tag,
  2. TRErrorCallback errorCallback
)
override

Implementation

@override
Future<bool> canShowContentForPlacement(
    String tag, TRErrorCallback errorCallback) async {
  final callId = _newCallId();
  _errorCallbacks[callId] = errorCallback;
  final result = await methodChannel.invokeMethod<bool>(
      'canShowContentForPlacement', {'callId': callId, 'tag': tag});
  _errorCallbacks.remove(callId);
  return result ?? false;
}