# WatchEvent.Modifier

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Modifier

```
interface Modifier
```

|------------------------------------------------------------------------------------------------------------------------|
| [java.nio.file.WatchEvent.Modifier](https://developer.android.com/reference/kotlin/java/nio/file/WatchEvent.Modifier#) |

An event modifier that qualifies how a[Watchable](https://developer.android.com/reference/kotlin/java/nio/file/Watchable)is registered with a[WatchService](https://developer.android.com/reference/kotlin/java/nio/file/WatchService).

This release does not define any*standard*modifiers.

## Summary

|                                                                                                          Public methods                                                                                                          ||
|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| abstract[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [name](https://developer.android.com/reference/kotlin/java/nio/file/WatchEvent.Modifier#name())`()` Returns the name of the modifier. |

## Public methods

### name

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun name(): String!
```

Returns the name of the modifier.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the name of the modifier |