3.5 Device 设备 - Device Info 设备信息


Access information about the simluated or connected phone, tablet or computer.

关于手机、平板、电脑的访问信息。

3.5 Device 设备 - Device Info 设备信息_第1张图片

输出口
Connected
A boolean that is true when a phone or tablet is connected.
布尔值为真时设备可以被连接。

Screen Size 屏幕尺寸
The size of the screen. Use Size Unpack to get the individual width and height.
屏幕的尺寸,用 Size Unpack 模块获取宽和高。

Screen Scale 屏幕倍数
A number that represents the density of screen pixels per device-independent pixel (ex: iPhone has 2 pixels per point)
表示设备屏幕像素密度的数字(例如:iPhone 每点有2像素)

Is iPad 是否为iPad
A boolean that is true when the device is an iPad.
当设备为iPad布尔值为真。

Is Portrait 是否为纵向
A boolean that is true when the device is in portrait orientation.
当设备为纵向时布尔值为真。

Uses a Mouse 使用鼠标
A boolean that is true when the device accepts mouse interactions (as opposed to touch).
当设备接受鼠标交互(而不是触摸)布尔值为真。


你可能感兴趣的:(3.5 Device 设备 - Device Info 设备信息)