<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`View`](View) › [`onClose`](View/onClose)
## View.onClose() method
0.9.7
**Signature:**
```typescript
protected onClose(): Promise<void>;
```
**Returns:**
`Promise<void>`