public final class SyncEvent extends Object
id and
type. Additionally for events type of PROGRESS can be specified
progress value and for events type of ERROR can be specified
occurred synchronization error.
Creation of instances of SyncEvents is restricted via SyncEvent.Builder
only.
| Modifier and Type | Class and Description |
|---|---|
static class |
SyncEvent.Builder
Builder that can be used to create a new instance of
SyncEvent. |
| Modifier and Type | Field and Description |
|---|---|
android.accounts.Account |
account
Account used during execution of synchronization task with
id. |
Exception |
error
Error that has occurred during execution of synchronization task with
id. |
static int |
ERROR
Type flag for
SyncEvent determining error occurred during synchronization. |
android.os.Bundle |
extras
Bundle with additional extra information.
|
static int |
FINISH
Type flag for
SyncEvent determining finish of synchronization. |
int |
id
Id of the synchronization task for which has been this synchronization event fired.
|
int |
progress
Current progress of synchronization task with
id. |
static int |
PROGRESS
Type flag for
SyncEvent determining progress of synchronization. |
static int |
START
Type flag for
SyncEvent determining start of synchronization. |
int |
type
Type of this synchronization event.
|
public static final int START
SyncEvent determining start of synchronization.public static final int PROGRESS
SyncEvent determining progress of synchronization.public static final int FINISH
SyncEvent determining finish of synchronization.public static final int ERROR
SyncEvent determining error occurred during synchronization.public final int id
public final int type
public final int progress
id.public final Exception error
id.public final android.accounts.Account account
id.public final android.os.Bundle extras