Callback function for requests expecting a ViewMode object.

Syntax

function(<ViewMode> viewMode)