Globals
js-miniapp-sdk
Index
Enumerations
- AdTypes
- CustomPermissionName
- CustomPermissionStatus
- DevicePermission
- MiniAppErrorType
- ScreenOrientation
Classes
- AccessTokenData
- AccessTokenScopes
- AudienceNotSupportedError
- AuthorizationFailureError
- MiniApp
- MiniAppError
- ScopesNotSupportedError
Interfaces
- Ad
- ChatServiceProvider
- Contact
- CustomPermission
- CustomPermissionResponse
- CustomPermissionResult
- MessageToContact
- MiniAppFeatures
- MiniAppJson
- Platform
- Points
- Reward
- ShareInfoType
- UserInfoProvider
Variables
Functions
Variables
errorTypesDescriptions
• Const errorTypesDescriptions: Map<MiniAppErrorType, string> = new Map<MiniAppErrorType, string>([ [ MiniAppErrorType.AudienceNotSupportedError, “The value passed for ‘audience’ is not supported.”, ], [ MiniAppErrorType.ScopesNotSupportedError, “The value passed for ‘scopes’ is not supported.”, ],])
Defined in js-miniapp-bridge/src/types/error-types/index.ts:66
Functions
parseMiniAppError
▸ parseMiniAppError(jsonString: string): MiniAppJson
Defined in js-miniapp-bridge/src/types/error-types/index.ts:15
Parameters:
| Name | Type |
|---|---|
jsonString |
string |
Returns: MiniAppJson
trimBannerText
▸ trimBannerText(message?: string, maxLength?: number): string
Defined in js-miniapp-bridge/src/common-bridge.ts:484
Parameters:
| Name | Type | Default value |
|---|---|---|
message |
string | null |
maxLength |
number | 128 |
Returns: string