Text in an snack bar message

Hi, I´m trying to catch the text in an snack bar message I´m getting from the system I’m working with, is there any existing documentation on how to do this that I can access to?