B2G/gecko/services/healthreport/policy.jsm
/**
   * The state of user notification of the data policy.
   *
   * This must be HealthReportPolicy.STATE_NOTIFY_COMPLETE before data
   * submission can occur.
   *
   * @return HealthReportPolicy.STATE_NOTIFY_* constant.
   */
The state of user notification of the data policy.
This must be HealthReportPolicy.STATE_NOTIFY_COMPLETE before data
submission can occur.


The state of user notification of the data policy . This must be HealthReportPolicy . STATE_NOTIFY_COMPLETE before data submission can occur .
get notifyState() {
    if (this.dataSubmissionPolicyResponseDate.getTime()) {
      return this.STATE_NOTIFY_COMPLETE;
    }
    if (!this._dataSubmissionPolicyNotifiedDate) {
      return this.STATE_NOTIFY_UNNOTIFIED;
    }
    return this.STATE_NOTIFY_WAIT;
  }
get notifyState ( ) { if ( this . dataSubmissionPolicyResponseDate . getTime ( ) ) { return this . STATE_NOTIFY_COMPLETE ; } if ( ! this . _dataSubmissionPolicyNotifiedDate ) { return this . STATE_NOTIFY_UNNOTIFIED ; } return this . STATE_NOTIFY_WAIT ; }
The state of user notification of the data policy.
The state of user notification of the data policy .
// We get the local state - not the state from prefs - because we don't want // a value from a previous application run to interfere. This prevents // a scenario where notification occurs just before application shutdown and // notification is displayed for shorter than the policy requires.