目录

The ArchiveConstants class defines APIs related to archives, for example, APIs for submitting and deleting archives.

Constant Summary

类型

常量

说明

String

ARCHIVE_SELECT

Constant returned when a player views a saved game on the saved game list screen of HUAWEI AppAssistant.

String

ARCHIVE_ADD

Constant returned when a player adds a saved game on the saved game list screen of HUAWEI AppAssistant.

int

STRATEGY_SELF

Constant for setting the conflict resolution policy as no conflict resolution.

int

STRATEGY_ACTIVE_TIME

Constant for setting the conflict resolution policy as automatic resolution by Huawei game server based on the played time.

int

STRATEGY_TOTAL_PROGRESS

Constant for setting the conflict resolution policy as automatic resolution by Huawei game server based on the progress.

int

STRATEGY_LAST_UPDATE

Constant for setting the conflict resolution policy as automatic resolution by Huawei game server based on the last modified time.

Constants

public static final String ARCHIVE_SELECT

Constant returned when a player views a saved game on the saved game list screen of HUAWEI AppAssistant.

You can use the getParcelableExtra(ArchiveConstants.ARCHIVE_SELECT) method of the Intent object to obtain the bundle object corresponding to the saved game selected by a player. 

public static final String ARCHIVE_ADD

Constant returned when a player adds a saved game on the saved game list screen of HUAWEI AppAssistant.

public static final int STRATEGY_SELF

Constant for setting the conflict resolution policy as no conflict resolution.

Constant value: -1

public static final int STRATEGY_ACTIVE_TIME

Constant for setting the conflict resolution policy as automatic resolution by Huawei game server based on the played time.

Constant value: 1

public static final int STRATEGY_TOTAL_PROGRESS

Constant for setting the conflict resolution policy as automatic resolution by Huawei game server based on the progress.

Constant value: 2

public static final int STRATEGY_LAST_UPDATE

Constant for setting the conflict resolution policy as automatic resolution by Huawei game server based on the last modified time.

Constant value: 3