Globals / MiniApp
Class: MiniApp
Hierarchy
- MiniApp
Implements
- MiniAppFeatures
- Ad
- Platform
Index
Properties
Methods
- downloadFile
- getHostEnvironmentInfo
- getMauid
- getMessagingUniqueId
- getPlatform
- getPoints
- getUniqueId
- loadInterstitialAd
- loadRewardedAd
- requestCustomPermissions
- requestLocationPermission
- setCloseAlert
- setScreenOrientation
- shareInfo
- showInterstitialAd
- showRewardedAd
Properties
chatService
• chatService: ChatService = new ChatService()
Defined in js-miniapp-sdk/src/miniapp.ts:165
miniappUtils
• miniappUtils: MiniAppUtils = new MiniAppUtils()
Defined in js-miniapp-sdk/src/miniapp.ts:168
purchaseService
• purchaseService: Purchases = new Purchases()
Defined in js-miniapp-sdk/src/miniapp.ts:169
secureStorageService
• secureStorageService: SecureStorageService = new SecureStorageService()
Defined in js-miniapp-sdk/src/miniapp.ts:166
universalBridge
• universalBridge: UniversalBridge = new UniversalBridge()
Defined in js-miniapp-sdk/src/miniapp.ts:167
user
• user: UserInfoProvider = new UserInfo()
Defined in js-miniapp-sdk/src/miniapp.ts:164
Methods
downloadFile
▸ downloadFile(filename
: string, url
: string, headers?
: DownloadFileHeaders): Promise<string>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:274
Parameters:
Name | Type | Default value |
---|---|---|
filename |
string | - |
url |
string | - |
headers |
DownloadFileHeaders | {} |
Returns: Promise<string>
getHostEnvironmentInfo
▸ getHostEnvironmentInfo(): Promise<HostEnvironmentInfo>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:265
Returns: Promise<HostEnvironmentInfo>
getMauid
▸ getMauid(): Promise<string>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:186
Returns: Promise<string>
getMessagingUniqueId
▸ getMessagingUniqueId(): Promise<string>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:182
Returns: Promise<string>
getPlatform
▸ getPlatform(): string
Defined in js-miniapp-sdk/src/miniapp.ts:249
Returns: string
getPoints
▸ getPoints(): Promise<Points>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:261
Returns: Promise<Points>
getUniqueId
▸ getUniqueId(): Promise<string>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:178
deprecated
Deprecated method for getting the uniqueId use getMessagingUniqueId
or getMauid
instead
Returns: Promise<string>
loadInterstitialAd
▸ loadInterstitialAd(id
: string): Promise<string>
Implementation of Ad
Defined in js-miniapp-sdk/src/miniapp.ts:229
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:233
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:221
Parameters:
Name | Type |
---|---|
permissions |
CustomPermission[] |
Returns: Promise<CustomPermissionResult[]>
requestLocationPermission
▸ requestLocationPermission(permissionDescription?
: string): Promise<string>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:190
Parameters:
Name | Type | Default value |
---|---|---|
permissionDescription |
string | ”” |
Returns: Promise<string>
setCloseAlert
▸ setCloseAlert(alertInfo
: CloseAlertInfo): Promise<string>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:285
deprecated
Deprecated method for getting the uniqueId use getMessagingUniqueId
or getMauid
instead
Parameters:
Name | Type |
---|---|
alertInfo |
CloseAlertInfo |
Returns: Promise<string>
setScreenOrientation
▸ setScreenOrientation(screenOrientation
: ScreenOrientation): Promise<string>
Implementation of MiniAppFeatures
Defined in js-miniapp-sdk/src/miniapp.ts:257
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:245
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:237
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:241
Parameters:
Name | Type |
---|---|
id |
string |
Returns: Promise<Reward>