getValuePropDeclineInfo method

Future<ValuePropDeclineInfo?> getValuePropDeclineInfo()

Gets metadata about previous value-proposition declines.

Useful for apps that want analytics or custom UI around the declined-value-proposition cohort (distinct from system-denied and go-to-settings cohorts). Delegates to NotificationPermissionHelper.getValuePropDeclineInfo.

Implementation

Future<ValuePropDeclineInfo?> getValuePropDeclineInfo() {
  if (_testGetValuePropDeclineInfoOverride != null) {
    return _testGetValuePropDeclineInfoOverride!();
  }
  return _permissionHelper.getValuePropDeclineInfo();
}