Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

pushOrPullReplication.addChangeListener(this)? #44

Description

@linovate

It seems couch base docs at (http://developer.couchbase.com/documentation/mobile/current/develop/guides/couchbase-lite/native-api/replication/index.html) suggests to do it the following way, does "pushOrPullReplication.addChangeListener(this);" still work? I kept getting error saying "addChangeListener in Replication cannot apply to com.XXX.MainActivity) .

push.addChangeListener(new Replication.ChangeListener() {
@OverRide
public void changed(Replication.ChangeEvent event) {
// will be called back when the push replication status changes
}
});
pull.addChangeListener(new Replication.ChangeListener() {
@OverRide
public void changed(Replication.ChangeEvent event) {
// will be called back when the pull replication status changes
}
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions