ScreenInfo
此内容尚不支持你的语言。
Defined in: screen.ts:16
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScreenInfo():
ScreenInfo
Returns
Section titled “Returns”ScreenInfo
Properties
Section titled “Properties”dpr:
number=1
Defined in: screen.ts:19
height
Section titled “height”height:
number=0
Defined in: screen.ts:18
orientation
Section titled “orientation”orientation:
ScreenOrientation=ScreenOrientation.Portrait
Defined in: screen.ts:20
width:
number=0
Defined in: screen.ts:17
Methods
Section titled “Methods”on<
K>(event,handler): () =>void
Defined in: screen.ts:25
Type Parameters
Section titled “Type Parameters”K extends keyof ScreenInfoEvents
Parameters
Section titled “Parameters”K
handler
Section titled “handler”(…args) => void
Returns
Section titled “Returns”() => void
update()
Section titled “update()”update(
width,height,dpr?):void
Defined in: screen.ts:32
Parameters
Section titled “Parameters”number
height
Section titled “height”number
number = 1
Returns
Section titled “Returns”void