如何在Kotlin的Preferences数据存储中设置注销
我们在共享的首选项中使用“ .crear”,以设置按钮注销。但是现在我尝试使用首选项数据存储,但不能使用相同的代码。那怎么?非常感谢您的回答。
We use ".clear" in shared preferences before, to setting the button logout. But now i tried to use preferences datastore, but can't use the same code. So how? Thank you so much for answering..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用此
在任何人想知道如何删除特定偏好的情况下
方法(对于proto DataStore):
Use this
In case anyone wants to know how to remove a specific preference
Try this (for Proto DataStore):