feedhenry / fh-android-sdk

FeedHenry Android SDK
Apache License 2.0
5 stars 16 forks source link

[WIP] FH-3905 new init() method and FHSyncConfig.Builder, lambda listeners #107

Closed wojta closed 7 years ago

wojta commented 7 years ago

it's still work in progress, preview for now

FHSyncConfig config=(new FHSyncConfig.Builder())
.useCustomSync(false)
.syncFrequencySeconds(10);
.onSyncCompleted(pMessage -> {
             //do things after sync is completed
}).build();

syncClient.init(getApplicationContext(), config);

DON'T MERGE YET

wojta commented 7 years ago

Pull request will be applied first at extracted sync https://github.com/feedhenry/fh-sync-android