layout: Native UI Layout

The forge.layout namespace allows you to access properties related to your app's native UI layout.

API

forge.layout.getSafeAreaInsets(success, error)ΒΆ

iOS, Android

The safe area of a view reflects the area not covered by navigation bars, tab bars, toolbars, and other UI elements that obscure the WebView.

Parameters:
success
function(safeAreaInsets) safeAreaInsets is a dictionary with the keys: top, left, bottom and right.
error
function(content) called with details of any error which may occur