Properties
Private #apiClient
#apiClient: default
Private #debugConfig
#debugConfig: DebugConfig
Private #projectConfig
#projectConfig: PlayerProjectConfig
Private #serverTime
#serverTime: number
Private _achievementsService
_achievementsService: default
Private _channelsService
_channelsService: default
Private _documentsService
_documentsService: default
Private _events
_events: EventLite = ...
Private _eventsService
_eventsService: default
Private _filesService
_filesService: default
Private _gamesCollectionsService
_gamesCollectionsService: default
Private _imagesService
_imagesService: default
Private _leaderboardsService
_leaderboardsService: default
Private _paymentsService
_paymentsService: default
Private _playerService
_playerService: default
_pointersManager
_pointersManager: PointersManager
Private _projectService
_projectService: default
Private _rewardsService
_rewardsService: default
Private _schedulersService
_schedulersService: default
avatarGenerator
avatarGenerator: string
avatarGeneratorTemplate
avatarGeneratorTemplate: string
channels
channels: default
devtools
devtools: { addShortcut: any; changeLanguage: any; closeSticky: any; purchaseProduct: any; requestReview: any; resumeSubscription: any; showCounter: any; showFullscreen: any; showPreloader: any; showRewardedVideo: any; showSticky: any; showToast: any; unsubscribe: any }
Type declaration
addShortcut:function
- addShortcut(): Promise<boolean>
changeLanguage:function
- changeLanguage(language: Lang): Promise<void>
Parameters
Returns Promise<void>
closeSticky:function
purchaseProduct:function
- purchaseProduct(product: Product): Promise<boolean>
Parameters
Returns Promise<boolean>
requestReview:function
- requestReview(): Promise<RequestReviewResult>
Returns Promise<RequestReviewResult>
resumeSubscription:function
- resumeSubscription(product: Product, purchase: PlayerPurchase): Promise<boolean>
Parameters
product: Product
purchase: PlayerPurchase
Returns Promise<boolean>
showCounter:function
- showCounter(apiReqCounter: number): void
showFullscreen:function
- showFullscreen(): Promise<boolean>
showPreloader:function
- showPreloader(): Promise<boolean>
showRewardedVideo:function
- showRewardedVideo(): Promise<boolean>
showSticky:function
- showSticky(): Promise<boolean>
showToast:function
- showToast(__namedParameters: Toast): void
unsubscribe:function
- unsubscribe(product: Product, purchase: PlayerPurchase): Promise<boolean>
Parameters
product: Product
purchase: PlayerPurchase
Returns Promise<boolean>
experiments
experiments: default
isGameStarted
isGameStarted: boolean = false
isGameplay
isGameplay: boolean = false
isMobile
isMobile: boolean
isPaused
isPaused: boolean = false
loader
loader: { dec: any; inc: any }
logger
logger: Logger = logger
overlay
overlay: { changeAvatarGenerator: any; changeLanguage: any; close: any; closeOrientationOverlay: any; closePreAdCountdownOverlay: any; closePreAdCountdownOverlayFinish: any; closeRewardedFailedOverlay: any; login: any; openAchievements: any; openChat: any; openDocument: any; openGamesCollections: any; openLeaderboard: any; openProductPurchase: any; pickPlayerOnConflict: any; setSizeOffsets: any; setUnsupportedDeviceOverlay: any; share: any; showOrientationOverlay: any; showPreAdCountdownOverlay: any; showPreAdCountdownOverlayFinish: any; showRewardedFailedOverlay: any; unlockAchievement: any }
Type declaration
changeAvatarGenerator:function
- changeAvatarGenerator(avatarGenerator: string): void
changeLanguage:function
- changeLanguage(lang: Lang): Promise<void>
Parameters
Returns Promise<void>
close:function
closeOrientationOverlay:function
- closeOrientationOverlay(): void
closePreAdCountdownOverlay:function
- closePreAdCountdownOverlay(): void
closePreAdCountdownOverlayFinish:function
- closePreAdCountdownOverlayFinish(): void
closeRewardedFailedOverlay:function
- closeRewardedFailedOverlay(): void
login:function
- login(options?: { withSecretCode?: boolean }): Promise<{ secretCode?: string; type: string }>
Parameters
options: { withSecretCode?: boolean } = {}
Optional withSecretCode?: boolean
Returns Promise<{ secretCode?: string; type: string }>
openAchievements:function
- openAchievements(achievementsInfo: FetchPlayerAchievementsOutput, __namedParameters?: { scrollTo?: string | number }): Promise<void>
Parameters
achievementsInfo: FetchPlayerAchievementsOutput
__namedParameters: { scrollTo?: string | number } = {}
Optional scrollTo?: string | number
Returns Promise<void>
openChat:function
- openChat(channel: Channel, channelMessages: FetchOutput<ChannelMessage>, personalChannelData?: PersonalChannelData): Promise<void>
Parameters
channel: Channel
channelMessages: FetchOutput<ChannelMessage>
Optional personalChannelData: PersonalChannelData
Returns Promise<void>
openDocument:function
- openDocument(document: Document): Promise<void>
Parameters
Returns Promise<void>
openGamesCollections:function
- openGamesCollections(gamesCollection: GamesCollection): Promise<void>
Parameters
gamesCollection: GamesCollection
Returns Promise<void>
openLeaderboard:function
- openLeaderboard(query: GetLeaderboardQuery, leaderbordInfo: RatingData): Promise<void>
Parameters
query: GetLeaderboardQuery
leaderbordInfo: RatingData
Returns Promise<void>
openProductPurchase:function
- openProductPurchase(product: Product): Promise<void>
Parameters
Returns Promise<void>
pickPlayerOnConflict:function
- pickPlayerOnConflict(conflictInfo: Omit<PlayerSyncConflict, "__typename">): Promise<PlayerState>
Parameters
conflictInfo: Omit<PlayerSyncConflict, "__typename">
Returns Promise<PlayerState>
setSizeOffsets:function
- setSizeOffsets(sizeOffsets: { bottom: number; top: number }): void
Parameters
sizeOffsets: { bottom: number; top: number }
bottom: number
top: number
Returns void
setUnsupportedDeviceOverlay:function
- setUnsupportedDeviceOverlay(__namedParameters: { allowed: TargetOs[]; detected: TargetOs }): void
Parameters
__namedParameters: { allowed: TargetOs[]; detected: TargetOs }
allowed: TargetOs[]
detected: TargetOs
Returns void
share:function
- share(shareType: ShareType, options: ShareOptions): Promise<boolean>
Parameters
shareType: ShareType
options: ShareOptions
Returns Promise<boolean>
showOrientationOverlay:function
- showOrientationOverlay(orientationRequired: GameOrientation): void
Parameters
orientationRequired: GameOrientation
Returns void
showPreAdCountdownOverlay:function
- showPreAdCountdownOverlay(): void
showPreAdCountdownOverlayFinish:function
- showPreAdCountdownOverlayFinish(wasInFullscreen: boolean): Promise<any>
Parameters
Returns Promise<any>
showRewardedFailedOverlay:function
- showRewardedFailedOverlay(): Promise<any>
unlockAchievement:function
- unlockAchievement(achievement: Achievement): void
projectId
projectId: number
schedulers
schedulers: default
segments
segments: Segments
setBackground
setBackground: ((__namedParameters: Partial<BackgroundSettings>) => void) = setBackground
Type declaration
- (__namedParameters: Partial<BackgroundSettings>): void
Parameters
__namedParameters: Partial<BackgroundSettings>
Returns void
triggers
triggers: default
Achievements manager