Android
android.content
public class

android.content.SyncContext

java.lang.Object
android.content.SyncContext

Summary

Public Constructors

            SyncContext(ISyncContext syncContextInterface)

Public Methods

          ISyncContext  getISyncContext()
          void  onFinished(SyncResult result)
          void  setStatusText(String message)
Call to update the status text for this sync.
          void  updateHeartbeat()
Call to indicate that the SyncAdapter is making progress.
Methods inherited from class java.lang.Object

Details

Public Constructors

public SyncContext(ISyncContext syncContextInterface)

Public Methods

public ISyncContext getISyncContext()

public void onFinished(SyncResult result)

public void setStatusText(String message)

Call to update the status text for this sync. This internally invokes updateHeartbeat(), so it also takes the place of a call to that.

Parameters

message the current status message for this sync

public void updateHeartbeat()

Call to indicate that the SyncAdapter is making progress. E.g., if this SyncAdapter downloads or sends records to/from the server, this may be called after each record is downloaded or uploaded.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48