getSafeAreaInsets
Used to get the safe area insets at the top and bottom of mobile devices, suitable for UI adaptation on notch and full-screen models.
Request Parameters: None
Response Parameters:
Parameter Name
Type
Description
safeAreaTop
Int
Height of the top safe area.
safeAreaBottom
Int
Height of the bottom safe area.
Call Example:
const response = await relayx.getSafeAreaInsets();
if (response.code === 200) {
console.log("Safe Area Info:", response.result);
}Last updated