Skip to content

Interface: IMiniapp

Table of contents

Methods

Methods

select

select(name): IMiniappSelect

Parameters

NameType
namestring

Returns

IMiniappSelect

Defined in

leafer/packages/interface/src/platform/IPlatform.ts:62


getBounds

getBounds(select): Promise<IBoundsData>

Parameters

NameType
selectIMiniappSelect

Returns

Promise<IBoundsData>

Defined in

leafer/packages/interface/src/platform/IPlatform.ts:63


getSizeView

getSizeView(select): Promise<IMiniappSizeView>

Parameters

NameType
selectIMiniappSelect

Returns

Promise<IMiniappSizeView>

Defined in

leafer/packages/interface/src/platform/IPlatform.ts:64


onWindowResize

onWindowResize(fun): void

Parameters

NameType
funIFunction

Returns

void

Defined in

leafer/packages/interface/src/platform/IPlatform.ts:65


offWindowResize

offWindowResize(fun): void

Parameters

NameType
funIFunction

Returns

void

Defined in

leafer/packages/interface/src/platform/IPlatform.ts:66


saveToAlbum

saveToAlbum(path): Promise<any>

Parameters

NameType
pathstring

Returns

Promise<any>

Defined in

leafer/packages/interface/src/platform/IPlatform.ts:67

Released under the MIT License.