Light Novel Reader Api
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
Light Novel Reader Api
Light Novel Reader Api
/
io.nightfish.lightnovelreader.api.userdata
/
UserDataDaoApi
User
Data
Dao
Api
interface
UserDataDaoApi
用户数据的数据访问对象接口 提供对持久化存储的底层操作
Since
Api 2
Members
Functions
get
Link copied to clipboard
abstract
fun
get
(
path
:
String
)
:
String
?
通过路径读取用户数据的字符串值
get
Flow
Link copied to clipboard
abstract
fun
getFlow
(
path
:
String
)
:
Flow
<
String
?
>
获取用户数据字符串值的可观测流
insert
Link copied to clipboard
abstract
fun
insert
(
path
:
String
,
group
:
String
,
type
:
String
,
value
:
String
)
写入或更新一条用户数据
remove
Link copied to clipboard
abstract
fun
remove
(
path
:
String
)
删除指定路径的用户数据