Skip to content

Commit 6d0b32c

Browse files
committed
feat: 支持webxr新版api
1 parent a39020e commit 6d0b32c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-flow-interface",
3-
"version": "0.17.22",
3+
"version": "0.17.24",
44
"description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
55
"type": "module",
66
"module": "dist/index.js",

src/api/service/engine/rs-service-api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@ export default interface RsServiceApi {
1010
state: {
1111
rendering: boolean
1212
}
13+
14+
isSupportWebXR(): boolean
15+
16+
isWebXRInitialized(): boolean
17+
18+
enterVR(onInitialize: () => void): Promise<void>
1319
}

0 commit comments

Comments
 (0)