Lines Matching refs:frame
2 The displaySync module allows your application to draw its custom UI content at a specified frame r…
18 Creates a **DisplaySync** object, through which you can set the frame rate of the custom UI content.
35 …callback, including the timestamp when the current frame arrives and the timestamp when the next f…
41 | timestamp | number | Yes | No | Time when the current frame arrives, in nanoseconds.|
42 | targetTimestamp | number| Yes | No | Expected arrival time of the next frame, in nanoseconds.|
46 … object that implements the setting of the frame rate and callback. It provides APIs for you to se…
54 Sets the expected frame rate range.
62 …kui/arkui-ts/ts-explicit-animation.md#expectedframeraterange11)| Yes | Expected frame rate range.|
81 // Set the expected frame rate range.
85 ### on('frame')
87 on(type: 'frame', callback: Callback\<IntervalInfo\>): void
89 Subscribes to change events of each frame.
97 | type | 'frame'| Yes | Event type. The value is fixed at **'frame'**.|
109 backDisplaySync?.on("frame", callback)
112 ### off('frame')
114 off(type: 'frame', callback\?: Callback\<IntervalInfo\>): void
116 Unsubscribes from change events of each frame.
124 | type | 'frame'| Yes | Event type. The value is fixed at **'frame'**.|
135 backDisplaySync?.on("frame", callback)
138 backDisplaySync?.off("frame", callback)
145 Starts callback for each frame.
164 backDisplaySync?.on("frame", callback)
166 // Start callback for each frame.
207 Stops callback for each frame.
228 backDisplaySync?.on("frame", callback)
234 // Stop callback for each frame.