android-components / mozilla.components.support.ktx.util / writeString

writeString

inline fun <ERROR CLASS>.writeString(block: () -> String): Boolean (source)

Writes an AtomicFile and indicates if the file was wrote.

Parameters

block - A function with provides the content of the file as a String

Return true if the file wrote otherwise false