updateSessionIfNeeded

open fun updateSessionIfNeeded(session: Session)

Updates the session display geometry if a change was posted either by onSurfaceChanged call or by onDisplayChanged system callback. This function should be called explicitly before each call to update. This function will also clear the 'pending update' (viewportChanged) flag.

Parameters

session

the Session object to update if display geometry changed.