An internal parameter used to enforce the singleton pattern.
静态
instanceThe type of event.
可选
data: any(Optional) Data to pass to the callback. If multiple parameters p1, p2, p3, ... need to be passed, use an array structure such as [p1, p2, p3, ...]. If a single parameter p needs to be passed and p is an array, use a structure such as [p]. For other single parameters p, you can directly pass parameter p. If data is Event.EMPTY, it means passing an Event object to the callback function. Note that it is not passing Event.TEMP, but an independent Event object.
True if there are listeners for this event type, false otherwise.
The type of event.
The listener function.
This EventDispatcher object.
The type of event.
The execution scope of the event listener function.
可选
listener: FunctionThe listener function.
可选
args: any[]This EventDispatcher object.
可选
type: string(Optional) The type of event. If the value is null, all types of listeners on this object are removed.
This EventDispatcher object.
The type of event.
The listener function.
This EventDispatcher object.
The type of event.
The execution scope of the event listener function.
The listener function.
可选
args: any[](Optional) The callback parameters of the event listener function.
This EventDispatcher object.
The type of event.
The listener function.
This EventDispatcher object.
The type of event.
The execution scope of the event listener function.
The listener function.
可选
args: any[](Optional) The callback parameters of the event listener function.
This EventDispatcher object.
En
Use Gyroscope.instance to obtain the unique Gyroscope reference. Do not call the constructor directly. The callback handler of listen() accepts two parameters:
function onOrientationChange(absolute: Boolean, info: RotationInfo): void
.Zh
通过 Gyroscope.instance 获取唯一的 Gyroscope 引用,不要直接调用构造函数。 listen() 的回调处理器接受两个参数: