Hide

AppStateManager.StateConflictResult

public static interface AppStateManager.StateConflictResult implements Result Releasable
com.google.android.gms.appstate.AppStateManager.StateConflictResult

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.

Public Method Summary

abstract byte[]
abstract String
abstract byte[]
abstract int

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.