: PersistentStore { override fun save(key: String, data: String) { prefs.edit().putString(key, data).commit() } override fun load(key: String): String? { return prefs.getString(key, null) } override fun delete(key: String) { prefs.edit().remove(key).commit() } } Unconventional Android - Dependency Injection. ©2017 Richard Cirerol 86