StringResource

直接使用 String 作为内容的 Resource

Functions

Link copied to clipboard
abstract override fun string(): String

读取此资源的 String 内容。

Inherited functions

Link copied to clipboard
open override fun data(): ByteArray

使用 source 并读取其中全部的字节数据。

Link copied to clipboard

SourceResource 中通过 Source 获取一个 InputStream

Link copied to clipboard
open override fun source(): Source

得到一个用于本次数据读取的 Source.

Link copied to clipboard

将给定的 Resource 转换为 OfflineImage。 会在适当的情况下转化为一些平台特供的类型, 并在其他情况下转化为全平台实现 OfflineByteArrayImageSimpleOfflineResourceImage