2
0
mirror of synced 2025-01-27 06:34:59 +00:00

[android][database] added setPersistenceCacheSizeBytes(bytes: integer);

This commit is contained in:
Salakar 2017-11-08 11:43:59 +00:00
parent dda01cd8cf
commit a4ca30a66f

View File

@ -71,6 +71,16 @@ public class RNFirebaseDatabase extends ReactContextBaseJavaModule {
getDatabaseForApp(appName).setPersistenceEnabled(state);
}
/**
* @param appName
* @param size
*/
@ReactMethod
public void setPersistenceCacheSizeBytes(String appName, int size) {
getDatabaseForApp(appName).setPersistenceCacheSizeBytes((long) size);
}
/**
* @param enabled
*/