Stay organized with collections
Save and categorize content based on your preferences.
GooglePlayGames.BasicApi.SavedGame.IConflictResolver
An interface that allows developers to resolve metadata conflicts that may be encountered while opening saved games.
Summary
Public functions
void ChooseMetadata(
ISavedGameMetadata chosenMetadata
)
Resolves the conflict by choosing the passed metadata to be canonical.
The passed metadata must be one of the two instances passed as parameters into ConflictCallback - this instance will be kept as the cannonical value in the cloud.
Details |
Parameters |
chosenMetadata
|
The chosen metadata. This metadata must be open. If it is not open, the invocation of NativeSavedGameClient.OpenWithManualConflictResolution that produced this ConflictResolver will immediately fail with SelectUIStatus.BadInputError.
|
|
ResolveConflict
void ResolveConflict(
ISavedGameMetadata chosenMetadata,
SavedGameMetadataUpdate metadataUpdate,
byte[] updatedData
)
Resolves the conflict and updates the data.
Details |
Parameters |
chosenMetadata
|
Metadata for the chosen version. This is either the original or unmerged metadata provided when the callback is invoked.
|
metadataUpdate
|
Metadata update, same as when committing changes.
|
updatedData
|
Updated data to use when resolving the conflict.
|
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 UTC."],[],[],null,["# GooglePlayGames.BasicApi.SavedGame.IConflictResolver Interface Reference\n\nGooglePlayGames.BasicApi.SavedGame.IConflictResolver\n====================================================\n\nAn interface that allows developers to resolve metadata conflicts that may be encountered while opening saved games.\n\nSummary\n-------\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [ChooseMetadata](#interface_google_play_games_1_1_basic_api_1_1_saved_game_1_1_i_conflict_resolver_1af9d8ede0686c12c429468522120ea1a7)`(`[ISavedGameMetadata](/games/services/unity/v2/api/interface/google-play-games/basic-api/saved-game/i-saved-game-metadata#interface_google_play_games_1_1_basic_api_1_1_saved_game_1_1_i_saved_game_metadata)` chosenMetadata)` | `void` Resolves the conflict by choosing the passed metadata to be canonical. |\n| [ResolveConflict](#interface_google_play_games_1_1_basic_api_1_1_saved_game_1_1_i_conflict_resolver_1a992cd337b5a7ddb9cac39e7ca54bb5ff)`(`[ISavedGameMetadata](/games/services/unity/v2/api/interface/google-play-games/basic-api/saved-game/i-saved-game-metadata#interface_google_play_games_1_1_basic_api_1_1_saved_game_1_1_i_saved_game_metadata)` chosenMetadata, `[SavedGameMetadataUpdate](/games/services/unity/v2/api/struct/google-play-games/basic-api/saved-game/saved-game-metadata-update#struct_google_play_games_1_1_basic_api_1_1_saved_game_1_1_saved_game_metadata_update)` metadataUpdate, byte[] updatedData)` | `void` Resolves the conflict and updates the data. |\n\nPublic functions\n----------------\n\n### ChooseMetadata\n\n```c#\nvoid ChooseMetadata(\n ISavedGameMetadata chosenMetadata\n)\n``` \nResolves the conflict by choosing the passed metadata to be canonical.\n\nThe passed metadata must be one of the two instances passed as parameters into [ConflictCallback](/games/services/unity/v2/api/namespace/google-play-games/basic-api/saved-game#namespace_google_play_games_1_1_basic_api_1_1_saved_game_1a788cd50d6c6a4d82d3eef9b51fbd246a) - this instance will be kept as the cannonical value in the cloud.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `chosenMetadata` | The chosen metadata. This metadata must be open. If it is not open, the invocation of NativeSavedGameClient.OpenWithManualConflictResolution that produced this ConflictResolver will immediately fail with SelectUIStatus.BadInputError. | |\n\n### ResolveConflict\n\n```c#\nvoid ResolveConflict(\n ISavedGameMetadata chosenMetadata,\n SavedGameMetadataUpdate metadataUpdate,\n byte[] updatedData\n)\n``` \nResolves the conflict and updates the data.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------------|--------------------------------------------------------------------------------------------------------------------------| | `chosenMetadata` | Metadata for the chosen version. This is either the original or unmerged metadata provided when the callback is invoked. | | `metadataUpdate` | Metadata update, same as when committing changes. | | `updatedData` | Updated data to use when resolving the conflict. | |"]]