// Pass context and wanted serializer.
// This creates a Livebox instance with default values.
Livebox.init(this, LiveboxGsonSerializer.create());
You can pass a Config instance to fully customize Livebox behaviour.
Livebox.init(new Config()
.lruCacheConfig(new DiskLruDataSource.Config(
new File("somePath") // Cache file path
10 * 1024 * 1024// Cache size in bytes
))
.addSerializer(LiveboxGsonSerializer.create())
...
);
Please check Configuration page for more details.