Definition at line 23 of file HistoryDatabase.java.
◆ getInstance()
| static HistoryDatabase com.freerdp.freerdpcore.data.HistoryDatabase.getInstance |
( |
Context |
context | ) |
|
|
inlinestatic |
Definition at line 31 of file HistoryDatabase.java.
32 {
33 if (instance == null)
34 {
35 synchronized (HistoryDatabase.class)
36 {
37 if (instance == null)
38 {
39 instance = Room.databaseBuilder(context.getApplicationContext(),
40 HistoryDatabase.class, DB_NAME)
41 .addMigrations(MIGRATION_1_2, MIGRATION_2_3)
42 .fallbackToDestructiveMigration()
43 .build();
44 }
45 }
46 }
47 return instance;
48 }
The documentation for this class was generated from the following file: