# WatchEvent.Kind

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

# WatchEvent.Kind

`
public
static


interface
WatchEvent.Kind
`  
`


`

|------------------------------------|
| java.nio.file.WatchEvent.Kind\<T\> |

<br />

*** ** * ** ***

An event kind, for the purposes of identification.  
**See also:**

- [StandardWatchEventKinds](https://developer.android.com/reference/java/nio/file/StandardWatchEventKinds)

## Summary

|                                                                                                                                         ### Public methods                                                                                                                                         ||
|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[String](https://developer.android.com/reference/java/lang/String)    | ` `[name](https://developer.android.com/reference/java/nio/file/WatchEvent.Kind#name())`() ` Returns the name of the event kind.                                                                                |
| ` abstract `[Class](https://developer.android.com/reference/java/lang/Class)`<T>` | ` `[type](https://developer.android.com/reference/java/nio/file/WatchEvent.Kind#type())`() ` Returns the type of the[context](https://developer.android.com/reference/java/nio/file/WatchEvent#context())value. |

## Public methods

### name

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

```
public abstract String name ()
```

Returns the name of the event kind.

<br />

|                                                Returns                                                ||
|--------------------------------------------------------------------|-----------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the name of the event kind <br /> |

### type

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

```
public abstract Class<T> type ()
```

Returns the type of the[context](https://developer.android.com/reference/java/nio/file/WatchEvent#context())value.

<br />

|                                                   Returns                                                   ||
|-----------------------------------------------------------------------|--------------------------------------|
| [Class](https://developer.android.com/reference/java/lang/Class)`<T>` | the type of the context value <br /> |