| Constructor and Description |
|---|
Builder(int id)
Creates a new instance of Builder with the specified id.
|
| Modifier and Type | Method and Description |
|---|---|
SyncEvent.Builder |
account(android.accounts.Account account)
Specifies an account for which SyncEvent will be fired.
|
SyncEvent |
build()
Builds a new instance of SyncEvent.
|
SyncEvent.Builder |
error(Exception error)
Specifies an error that occurred during synchronization.
|
SyncEvent.Builder |
extras(android.os.Bundle extras)
Specifies a bundle with extra information for the event.
|
SyncEvent.Builder |
progress(int progress)
Specifies a progress of running synchronization.
|
SyncEvent.Builder |
type(int type)
Specifies a type of SyncEvent that will be fired.
|
public Builder(int id)
id - The desired id for the new SyncEvent.SyncEvent.idpublic SyncEvent.Builder type(int type)
type - The desired type. May be one of SyncEvent.START, SyncEvent.PROGRESS, SyncEvent.FINISH
or SyncEvent.ERROR or custom specified type.SyncEvent.typepublic SyncEvent.Builder progress(int progress)
progress - The desired progress.SyncEvent.progresspublic SyncEvent.Builder error(Exception error)
error - The desired error.SyncEvent.errorpublic SyncEvent.Builder account(android.accounts.Account account)
account - The desired account.SyncEvent.accountpublic SyncEvent.Builder extras(android.os.Bundle extras)
extras - The desired bundle with extras.SyncEvent.extraspublic SyncEvent build()