js-miniapp-bridge - v1.1.0 › MiniApp
Class: MiniApp
Hierarchy
- MiniApp
Implements
Index
Properties
Methods
- getPlatform
- getUniqueId
- loadInterstitialAd
- loadRewardedAd
- requestCustomPermissions
- requestLocationPermission
- requestPermission
- setScreenOrientation
- shareInfo
- showInterstitialAd
- showRewardedAd
Properties
Private
bridge
• bridge: MiniAppBridge = (window as any).MiniAppBridge
Defined in js-miniapp-sdk/src/miniapp.ts:127
user
• user: UserInfoProvider = new UserInfo(this.bridge)
Defined in js-miniapp-sdk/src/miniapp.ts:128
Methods
getPlatform
▸ getPlatform(): string
Implementation of Platform
Defined in js-miniapp-sdk/src/miniapp.ts:170
Returns: string
getUniqueId
▸ getUniqueId(): Promise‹string›
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:134
Returns: Promise‹string›
loadInterstitialAd
▸ loadInterstitialAd(id
: string): Promise‹string›
Implementation of Ad
Defined in js-miniapp-sdk/src/miniapp.ts:150
Parameters:
Name | Type |
---|---|
id |
string |
Returns: Promise‹string›
loadRewardedAd
▸ loadRewardedAd(id
: string): Promise‹string›
Implementation of Ad
Defined in js-miniapp-sdk/src/miniapp.ts:154
Parameters:
Name | Type |
---|---|
id |
string |
Returns: Promise‹string›
requestCustomPermissions
▸ requestCustomPermissions(permissions
: CustomPermission[]): Promise‹CustomPermissionResult[]›
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:142
Parameters:
Name | Type |
---|---|
permissions |
CustomPermission[] |
Returns: Promise‹CustomPermissionResult[]›
requestLocationPermission
▸ requestLocationPermission(): Promise‹string›
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:138
Returns: Promise‹string›
Private
requestPermission
▸ requestPermission(permissionType
: DevicePermission): Promise‹string›
Defined in js-miniapp-sdk/src/miniapp.ts:130
Parameters:
Name | Type |
---|---|
permissionType |
DevicePermission |
Returns: Promise‹string›
setScreenOrientation
▸ setScreenOrientation(screenOrientation
: ScreenOrientation): Promise‹string›
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:178
Parameters:
Name | Type |
---|---|
screenOrientation |
ScreenOrientation |
Returns: Promise‹string›
shareInfo
▸ shareInfo(info
: ShareInfoType): Promise‹string›
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:166
Parameters:
Name | Type |
---|---|
info |
ShareInfoType |
Returns: Promise‹string›
showInterstitialAd
▸ showInterstitialAd(id
: string): Promise‹string›
Implementation of Ad
Defined in js-miniapp-sdk/src/miniapp.ts:158
Parameters:
Name | Type |
---|---|
id |
string |
Returns: Promise‹string›
showRewardedAd
▸ showRewardedAd(id
: string): Promise‹Reward›
Implementation of Ad
Defined in js-miniapp-sdk/src/miniapp.ts:162
Parameters:
Name | Type |
---|---|
id |
string |
Returns: Promise‹Reward›