|
| 1 | +[**@appzung/react-native-code-push**](../README.md) |
| 2 | + |
| 3 | +--- |
| 4 | + |
| 5 | +[@appzung/react-native-code-push](../README.md) / SyncStatus |
| 6 | + |
| 7 | +# Enumeration: SyncStatus |
| 8 | + |
| 9 | +Defined in: [enums/SyncStatus.enum.ts:4](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L4) |
| 10 | + |
| 11 | +Indicates the current status of a sync operation. |
| 12 | + |
| 13 | +## Enumeration Members |
| 14 | + |
| 15 | +### AWAITING_USER_ACTION |
| 16 | + |
| 17 | +> **AWAITING_USER_ACTION**: `6` |
| 18 | +
|
| 19 | +Defined in: [enums/SyncStatus.enum.ts:42](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L42) |
| 20 | + |
| 21 | +An update is available, and a confirmation dialog was shown |
| 22 | +to the end user. (This is only applicable when the `updateDialog` is used) |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +### CHECKING_FOR_UPDATE |
| 27 | + |
| 28 | +> **CHECKING_FOR_UPDATE**: `5` |
| 29 | +
|
| 30 | +Defined in: [enums/SyncStatus.enum.ts:36](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L36) |
| 31 | + |
| 32 | +The CodePush server is being queried for an update. |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +### DOWNLOADING_PACKAGE |
| 37 | + |
| 38 | +> **DOWNLOADING_PACKAGE**: `7` |
| 39 | +
|
| 40 | +Defined in: [enums/SyncStatus.enum.ts:47](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L47) |
| 41 | + |
| 42 | +An available update is being downloaded from the CodePush server. |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +### INSTALLING_UPDATE |
| 47 | + |
| 48 | +> **INSTALLING_UPDATE**: `8` |
| 49 | +
|
| 50 | +Defined in: [enums/SyncStatus.enum.ts:52](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L52) |
| 51 | + |
| 52 | +An available update was downloaded and is about to be installed. |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +### SYNC_IN_PROGRESS |
| 57 | + |
| 58 | +> **SYNC_IN_PROGRESS**: `4` |
| 59 | +
|
| 60 | +Defined in: [enums/SyncStatus.enum.ts:31](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L31) |
| 61 | + |
| 62 | +There is an ongoing `sync` operation running which prevents the current call from being executed. |
| 63 | + |
| 64 | +--- |
| 65 | + |
| 66 | +### UNKNOWN_ERROR |
| 67 | + |
| 68 | +> **UNKNOWN_ERROR**: `3` |
| 69 | +
|
| 70 | +Defined in: [enums/SyncStatus.enum.ts:26](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L26) |
| 71 | + |
| 72 | +The `sync` operation encountered an unknown error. |
| 73 | + |
| 74 | +--- |
| 75 | + |
| 76 | +### UP_TO_DATE |
| 77 | + |
| 78 | +> **UP_TO_DATE**: `0` |
| 79 | +
|
| 80 | +Defined in: [enums/SyncStatus.enum.ts:8](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L8) |
| 81 | + |
| 82 | +The app is fully up-to-date with the configured release channel. |
| 83 | + |
| 84 | +--- |
| 85 | + |
| 86 | +### UPDATE_IGNORED |
| 87 | + |
| 88 | +> **UPDATE_IGNORED**: `2` |
| 89 | +
|
| 90 | +Defined in: [enums/SyncStatus.enum.ts:21](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L21) |
| 91 | + |
| 92 | +The app had an optional update which the end user chose to ignore. |
| 93 | +(This is only applicable when the `updateDialog` is used) |
| 94 | + |
| 95 | +--- |
| 96 | + |
| 97 | +### UPDATE_INSTALLED |
| 98 | + |
| 99 | +> **UPDATE_INSTALLED**: `1` |
| 100 | +
|
| 101 | +Defined in: [enums/SyncStatus.enum.ts:15](https://github.com/AppZung/react-native-code-push/blob/5f900017beec34f1e037ac881585c7f5fb00d5dd/src/enums/SyncStatus.enum.ts#L15) |
| 102 | + |
| 103 | +An available update has been installed and will be run either immediately after the |
| 104 | +`syncStatusChangedCallback` function returns or the next time the app resumes/restarts, |
| 105 | +depending on the `InstallMode` specified in `SyncOptions` |
0 commit comments