public static interface

AppStateManager.StateConflictResult

implements Releasable Result
com.google.android.gms.appstate.AppStateManager.StateConflictResult

Class Overview

Result retrieved from AppStateManager.StateResult when a conflict is detected while loading app state. To resolve the conflict, call resolve(GoogleApiClient, int, String, byte[]) with the new desired data and the value of StateConflictResult#getResolvedVersion provided here.

Summary

Public Methods
abstract byte[] getLocalData()
abstract String getResolvedVersion()
abstract byte[] getServerData()
abstract int getStateKey()
[Expand]
Inherited Methods
From interface com.google.android.gms.common.api.Releasable
From interface com.google.android.gms.common.api.Result

Public Methods

public abstract byte[] getLocalData ()

Returns
  • Byte array containing the data that was saved locally on the device.

public abstract String getResolvedVersion ()

Returns
  • Version token to pass for resolution.

public abstract byte[] getServerData ()

Returns
  • Byte array containing the latest known data from the server.

public abstract int getStateKey ()

Returns
  • The state key that had the conflict.