File tree 2 files changed +12
-12
lines changed
database/app/src/main/java/com/google/firebase/referencecode/database 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ public class ReadAndWriteSnippets {
23
23
24
24
private static final String TAG = "ReadAndWriteSnippets" ;
25
25
26
- // [START initialize_database_ref ]
26
+ // [START declare_database_ref ]
27
27
private DatabaseReference mDatabase ;
28
- // ...
29
- // [START_EXCLUDE]
28
+ // [END declare_database_ref]
29
+
30
30
public ReadAndWriteSnippets (DatabaseReference database ) {
31
- // [END_EXCLUDE ]
32
- mDatabase = FirebaseDatabase .getInstance ().getReference ();
33
- // [END initialize_database_ref]
31
+ // [START initialize_database_ref ]
32
+ mDatabase = FirebaseDatabase .getInstance ().getReference ();
33
+ // [END initialize_database_ref]
34
34
}
35
35
36
36
// [START rtdb_write_new_user]
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ abstract class ReadAndWriteSnippets {
17
17
18
18
private val TAG = " ReadAndWriteSnippets"
19
19
20
- // [START initialize_database_ref ]
20
+ // [START declare_database_ref ]
21
21
private lateinit var database: DatabaseReference
22
- // ...
23
- // [START_EXCLUDE]
22
+ // [END declare_database_ref]
23
+
24
24
fun initializeDbRef () {
25
- // [END_EXCLUDE ]
26
- database = Firebase .database.reference
27
- // [END initialize_database_ref]
25
+ // [START initialize_database_ref ]
26
+ database = Firebase .database.reference
27
+ // [END initialize_database_ref]
28
28
}
29
29
30
30
// [START rtdb_write_new_user]
You can’t perform that action at this time.
0 commit comments