extendPlatform
此内容尚不支持你的语言。
extendPlatform(
extra):void
Defined in: platform/base.ts:33
Add capabilities to the platform this app is already on — a host answering
what its adapter cannot (the editor’s play realm stands in for an open data
context this way). Its own door because setPlatform({ ...getPlatform() })
drops every method an adapter holds on its PROTOTYPE.
Parameters
Section titled “Parameters”Partial<PlatformAdapter>
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Error if no platform is set — there is nothing to extend yet.