public class SharedPrefsAppLocaleRepository implements AppLocaleRepository
Implementation of interface AppLocaleRepository
which saves the AppLocale.desiredLocale
to
the shared preferences.
public static dev.b3nedikt.app_locale.SharedPrefsAppLocaleRepository.Companion Companion
public SharedPrefsAppLocaleRepository(@NotNull android.content.Context context)
Implementation of interface AppLocaleRepository
which saves the AppLocale.desiredLocale
to
the shared preferences.
@Nullable public java.util.Locale getDesiredLocale()
The locale which should ideally be used by the app, or null if the Locale.getDefault should be used.
public void setDesiredLocale(@Nullable java.util.Locale value)
The locale which should ideally be used by the app, or null if the Locale.getDefault should be used.