checkUpdateDimension method
void
checkUpdateDimension(
- BuildContext uiContext,
- VoltronMap dimensionMap,
- int windowWidth,
- int windowHeight,
- bool shouldUseScreenDisplay,
- bool systemUiVisibilityChanged,
override
Implementation
@override
void checkUpdateDimension(
BuildContext uiContext,
VoltronMap dimensionMap,
int windowWidth,
int windowHeight,
bool shouldUseScreenDisplay,
bool systemUiVisibilityChanged,
) {
// 如果windowHeight是无效值,则允许客户端定制
if (windowHeight < 0) {
deviceAdapter?.reviseDimensionIfNeed(
uiContext,
dimensionMap,
shouldUseScreenDisplay,
systemUiVisibilityChanged,
);
}
moduleManager
.getJavaScriptModule<Dimensions>(
enumValueToString(
JavaScriptModuleType.Dimensions,
),
)
?.set(
dimensionMap,
);
}