This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let questionListenerFirebaseRef = FIRDatabase.database().reference().child(<your_channel_name>) | |
questionListenerFirebaseRef.observeEventType(FIRDataEventType.ChildAdded) { (dataSnapshot: FIRDataSnapshot) in | |
// Question added. Proceed accordingly. | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let uploadQuestionFirebaseRef = FIRDatabase.database().reference().child(<your_channel_name>) | |
uploadQuestionFirebaseRef.setValue(<upload_data>) |
NewerOlder