FileEventObserver

Properties

Link copied to clipboard
val ACCESS: Int = 1
Link copied to clipboard
val ALL_EVENTS: Int = 4095
Link copied to clipboard
val ATTRIB: Int = 4
Link copied to clipboard
val CLOSE_NOWRITE: Int = 16
Link copied to clipboard
val CLOSE_WRITE: Int = 8
Link copied to clipboard
val CREATE: Int = 256
Link copied to clipboard
val DELETE: Int = 512
Link copied to clipboard
val DELETE_SELF: Int = 1024
Link copied to clipboard
val MODIFY: Int = 2
Link copied to clipboard
val MOVE_SELF: Int = 2048
Link copied to clipboard
val MOVED_FROM: Int = 64
Link copied to clipboard
val MOVED_TO: Int = 128
Link copied to clipboard
val OPEN: Int = 32

Functions

Link copied to clipboard
open fun create(@NonNull file: File, mask: Int, listener: FileEventObserver.Listener): FileEventObserver
Link copied to clipboard
open fun onEvent(event: Int, @Nullable path: String)
Link copied to clipboard
open fun startWatching()
Link copied to clipboard
open fun stopWatching()