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

This commit is contained in:
Salakar 2017-11-08 11:43:59 +00:00
parent dda01cd8cf
commit a4ca30a66f
1 changed files with 10 additions and 0 deletions

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
*/