Application Level Shared Preferences - Implementation and Best Practices - Andriod Studio

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 3

  • @PratikDeogade-ee2ex
    @PratikDeogade-ee2ex 6 месяцев назад +1

    More on this:
    commit() is synchronous and returns a boolean, while apply() is asynchronous and doesn't return any value. apply() is generally preferred for performance reasons, especially in scenarios where frequent or large changes to SharedPreferences are expected. However, if you need to ensure the success or failure of the operation, commit() might be more suitable.

  • @adityadeshbhartar7172
    @adityadeshbhartar7172 Год назад +3

    Your content is super fantastic sir ji ❤🙌

    • @NeatRoots
      @NeatRoots  Год назад +1

      Thank you so much 😀