Interface Settings.OnChanged

Enclosing class:
Settings
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Settings.OnChanged
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The "changed" signal is emitted when a key has potentially changed.
  • Method Details

    • onChanged

      void onChanged(@Nonnull Str key)
      The "changed" signal is emitted when a key has potentially changed.
      You should call one of the g_settings_get() calls to check the new
      value.

      This signal supports detailed connections. You can connect to the
      detailed signal "changed::x" in order to only receive callbacks
      when key "x" changes.

      Note that @settings only emits this signal if you have read @key at
      least once while a signal handler was already connected for @key.
      Parameters:
      key - the name of the key that changed