Tutorial: View.getCurrent

View.getCurrent

Asynchronously returns a View object that represents the current view

Example

fin.View.getCurrent()
    .then(view => console.log('current view', view))
    .catch(err => console.log(err));