Is there a way to access the name of the current State in a state machine? I’m wondering if there is a property or method of the State Machine object that I can access. I’m creating some tests around a state machine, and would like to be able to know at any point what the current State is, for testing, logging and output. Is this possible?
Otherwise, I know I could create a global or state machine scope variable and update it as each state is reached. But I’m wondering if there is already something built in? Or perhaps a way to grab an activity’s parent container’s name, so that I wouldn’t have to type it out in full which may introduce error?