showSurveyForPlacement method
Future<void>
showSurveyForPlacement({
- required String placementTag,
- required String surveyId,
- Map<
String, dynamic> ? customParameters, - TRContentCallback? contentCallback,
- required TRErrorCallback errorCallback,
override
Implementation
@override
Future<void> showSurveyForPlacement({
required String placementTag,
required String surveyId,
Map<String, dynamic>? customParameters,
TRContentCallback? contentCallback,
required TRErrorCallback errorCallback,
}) async {
final callId = _newCallId();
_errorCallbacks[callId] = errorCallback;
if (contentCallback != null) _contentCallbacks[callId] = contentCallback;
await methodChannel.invokeMethod<void>('showSurveyForPlacement', {
'callId': callId,
'placementTag': placementTag,
'surveyId': surveyId,
'hasContentCallback': contentCallback != null,
'customParameters': customParameters,
});
}