Device
Last updated
bridge.device.orientation // 'portrait' | 'landscape'
// Listen for orientation changes
bridge.device.on(bridge.EVENT_NAME.ORIENTATION_STATE_CHANGED, orientation => {
console.log('Orientation:', orientation)
}){
"device": {
"useBuiltInOrientationPopup": true,
"supportedOrientations": ["landscape"]
}
}bridge.device.on(bridge.EVENT_NAME.SCREEN_SIZE_CHANGED, size => {
console.log('Screen size:', size.width, size.height)
})const { top, bottom, left, right } = bridge.device.safeAreavar safeArea = Bridge.device.safeArea;
Debug.Log($"{safeArea.top} {safeArea.bottom} {safeArea.left} {safeArea.right}");