Pro tip:notes<T>().get(subject) returns a NotepadAdapter to make accessing the APIs
of the underlying type easier. Check NotepadAdapter for more examples.
Working with untyped notes
You can use notes<T>() without parameterising it with an interface
describing the structure of your notes.
Note: this approach is not type-safe and the type-safe alternative presented below should be used in most cases.
Alias for
Notepad.notes
.Pro tip:
notes<T>().get(subject)
returns aNotepadAdapter
to make accessing the APIs of the underlying type easier. CheckNotepadAdapter
for more examples.Working with untyped notes
You can use
notes<T>()
without parameterising it with an interface describing the structure of your notes.Note: this approach is not type-safe and the type-safe alternative presented below should be used in most cases.
Working with typed notes
The recommended way to use
notes<T>()
is to parameterise it with an interface describing the structure of your notes.Note: this approach is type-safe.
Checking if a note is present
Working with complex data structures
Learn more
NotepadAdapter
Notepad.notes
QuestionAdapter