huawei_gameservice library

Classes

Achievement
A class that includes the details about an achievement.
AchievementClient
Provides APIs for achievement management, for example, obtaining the game achievement list, incrementing an achievement, and setting steps required for unlocking an achievement.
ApkUpgradeInfo
A class that includes the details about an upgrade apk.
AppPlayerInfo
A class that includes the in-game information for the current player, such as the level, role, and server region, for you to use when calling the savePlayerInfo method of PlayersClient.
Archive
Returns the archive file and archive metadata of a saved game.
ArchiveConstants
Defines constants related to archive management.
ArchiveDetails
Operates an archive file.
ArchivesClient
Provides APIs for archive management, for example, APIs for submitting and deleting archives.
ArchiveSummary
Obtains the metadata of an archive, such as the description of an archive.
ArchiveSummaryUpdate
Saves changes to archive metadata in the case of archive submission or data conflict resolution.
BuoyClient
Provides APIs related to the game floating window.
CheckUpdateCallback
Handles update callbacks.
Difference
Details about a conflict if it is present on the difference field of an OperationResult object.
EventsClient
Provides APIs related to event management, such as submitting event data and obtaining the event data of the current player.
GameEvent
A class that includes the details about an event.
GamePlayerStatistics
A class that includes the statistics information of a player when the getGamePlayerStatistics method of GamePlayerStatisticsClient is called.
GamePlayerStatisticsClient
Provides APIs related to player information statistics.
GamesClient
Provides APIs related to basic game functions, such as obtaining the app ID and setting the position for displaying the game greeting pop-up on the screen.
GameScopes
GameServiceResultCodes
Defines the Huawei Game Service result codes.
GameSummary
Basic game information.
GameSummaryClient
Provides APIs for obtaining game information.
GameTrialProcess
Handles trial duration expiration.
HMSGameServiceLogger
HMSLogger capability which is used for sending usage analytics of Flutter Game Service SDK's methods to improve the service quality.
JosAppsClient
Provides APIs for JOS management, for example app initialization, managing app updates and managing missing orders.
OperationResult
Returns the final archive data or conflicting data in the case of archive reading or conflict resolution.
Player
A class that includes the details about a player.
PlayerExtraInfo
A class that includes the additional information of a player when the getPlayerExtraInfo method of PlayersClient is called.
PlayersClient
Provides APIs for obtaining player information.
ProductOrderInfo
A class that includes the details about a missed order.
Ranking
A class that includes the leaderboard data when the getRankingSummary method of RankingsClient is called.
RankingClient
Provides APIs related to leaderboard management, for example, APIs for obtaining leaderboard data and setting the leaderboard switch.
RankingScore
A class that includes the details about a score on a leaderboard when the score obtaining method of RankingsClient is called.
RankingScores
A class that includes the information about a leaderboard and the list of scores on the leaderboard.
RankingVariant
A class that includes the score information of the current player on the leaderboard in a specified time frame
ScoreSubmissionInfo
A class that includes the result of submitting a score to a leaderboard when the submitScoreWithResult method of RankingsClient is called.
SubmissionScoreResult
A class that includes the information about a submitted score on a leaderboard.
UpdateInfo
A class that includes the update status information.

Functions

imageFromUInt8List(Uint8List data) Image
Returns Image from Uint8List
removeNulls(Map<String, dynamic> map) Map<String, dynamic>
Remove the null entries on a map instance.

Typedefs

OnCheckRealNameResult = void Function(bool hasRealName)
Callback typedef for identity verification result.
OnMarketStoreError = dynamic Function(int responseCode)
The following method is reserved. No handling is required.
OnTrialTimeOut = void Function()
Callback typedef for trial duration expiration.
OnUpdateInfo = dynamic Function(UpdateInfo updateInfo)
Callback typedef to obtain the update status indormation from Huawei AppGallery.
OnUpdateStoreError = dynamic Function(int responseCode)
The following method is reserved. No handling is required.