This file contains hidden or 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
| /** | |
| * Used as a wrapper for data that is exposed via a LiveData that represents an event. | |
| */ | |
| open class Event<out T>(private val content: T) { | |
| var hasBeenHandled = false | |
| private set // Allow external read but not write | |
| /** | |
| * Returns the content and prevents its use again. |
This file contains hidden or 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
| DateTime.ToString() Patterns | |
| All the patterns: | |
| 0 MM/dd/yyyy 08/22/2006 | |
| 1 dddd, dd MMMM yyyy Tuesday, 22 August 2006 | |
| 2 dddd, dd MMMM yyyy HH:mm Tuesday, 22 August 2006 06:30 | |
| 3 dddd, dd MMMM yyyy hh:mm tt Tuesday, 22 August 2006 06:30 AM | |
| 4 dddd, dd MMMM yyyy H:mm Tuesday, 22 August 2006 6:30 | |
| 5 dddd, dd MMMM yyyy h:mm tt Tuesday, 22 August 2006 6:30 AM |