You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
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
}
});
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
}
});