API reference
API reference
Select your platform
No SDKs available
No versions available

RecursiveFileObserver Class

Modifiers: final

Signature

class RecursiveFileObserver(path: File, onFileChanged: (String) -> Unit)

Constructors

RecursiveFileObserver ( path , onFileChanged )
Signature
constructor(path: File, onFileChanged: (String) -> Unit)
Parameters
path: File
onFileChanged: Function1

Functions

onEvent ( event , filePath )
Signature
open fun onEvent(event: Int, filePath: String?)
Parameters
event: Int
filePath: String?
startWatching ()
Signature
open fun startWatching()
stopWatching ()
Signature
open fun stopWatching()
Did you find this page helpful?