GooglePlayGames.BasicApi.SavedGame.SavedGameMetadataUpdate.Builder

A builder for constructing instances of SavedGameMetadataUpdate.

Summary

Public functions

Build()
Builds a new SavedGameMetadataUpdate instance with the configured updates.
WithUpdatedDescription(string description)
Sets the description to be updated in the saved game metadata.
WithUpdatedPlayedTime(TimeSpan newPlayedTime)
Sets the played time to be updated in the saved game metadata.
WithUpdatedPngCoverImage(byte[] newPngCoverImage)
Sets the PNG cover image to be updated in the saved game metadata.

Public functions

Build

SavedGameMetadataUpdate GooglePlayGames::BasicApi::SavedGame::SavedGameMetadataUpdate::Builder::Build()

Builds a new SavedGameMetadataUpdate instance with the configured updates.

Details
Returns
A new instance of SavedGameMetadataUpdate.

WithUpdatedDescription

Builder GooglePlayGames::BasicApi::SavedGame::SavedGameMetadataUpdate::Builder::WithUpdatedDescription(
  string description
)

Sets the description to be updated in the saved game metadata.

Details
Parameters
description
The new description to set.
Returns
The builder with the updated description.

WithUpdatedPlayedTime

Builder GooglePlayGames::BasicApi::SavedGame::SavedGameMetadataUpdate::Builder::WithUpdatedPlayedTime(
  TimeSpan newPlayedTime
)

Sets the played time to be updated in the saved game metadata.

Details
Parameters
newPlayedTime
The new played time to set.
Exceptions
InvalidOperationException
Thrown if the played time exceeds the maximum allowed value.
Returns
The builder with the updated played time.

WithUpdatedPngCoverImage

Builder GooglePlayGames::BasicApi::SavedGame::SavedGameMetadataUpdate::Builder::WithUpdatedPngCoverImage(
  byte[] newPngCoverImage
)

Sets the PNG cover image to be updated in the saved game metadata.

Details
Parameters
newPngCoverImage
The new PNG image data for the cover image.
Returns
The builder with the updated cover image.