* @zh 获取当前平台适配器 * @en Get current platform adapter
()
| 30 | * @en Get current platform adapter |
| 31 | */ |
| 32 | public getAdapter(): IPlatformAdapter { |
| 33 | if (!this._adapter) { |
| 34 | throw new Error('平台适配器未注册,请调用 registerAdapter() 注册适配器'); |
| 35 | } |
| 36 | return this._adapter; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * @zh 注册平台适配器 |
no outgoing calls
no test coverage detected