setStarRatingDialogTexts static method
- @Deprecated('This function is deprecated, please use "setStarRatingDialogTexts" of CountlyConfig instead')
Set's the text's for the different fields in the star rating dialog. Set value null if for some field you want to keep the old value
String starRatingTextTitle
- dialog's title text (Only for Android)
String starRatingTextMessage
- dialog's message text
String starRatingTextDismiss
- dialog's dismiss buttons text (Only for Android)
returns the error or success message
Implementation
@Deprecated('This function is deprecated, please use "setStarRatingDialogTexts" of CountlyConfig instead')
static Future<String?> setStarRatingDialogTexts(String starRatingTextTitle, String starRatingTextMessage, String starRatingTextDismiss) async {
log('Calling "setStarRatingDialogTexts":[$starRatingTextTitle], message:[$starRatingTextMessage], dimiss:[$starRatingTextDismiss]');
log('setStarRatingDialogTexts is deprecated, use setStarRatingDialogTexts of CountlyConfig instead', logLevel: LogLevel.WARNING);
List<String> args = [];
args.add(starRatingTextTitle);
args.add(starRatingTextMessage);
args.add(starRatingTextDismiss);
final String? result = await _channel.invokeMethod('setStarRatingDialogTexts', <String, dynamic>{'data': json.encode(args)});
return result;
}