Android-DebugPort icon indicating copy to clipboard operation
Android-DebugPort copied to clipboard

Tips on reaching objects

Open gazialankus opened this issue 6 years ago • 1 comments

Could you provide some tips on how we can reach our objects? I guess we only have the app object. Some scenarios that come to mind are to derive my own application object with fields, or use static fields in my classes. If there is a simpler option, I would love to learn about it.

Thank you for this great tool.

gazialankus avatar Mar 06 '18 06:03 gazialankus

Thanks for using it!

You can include startup commands or scripts to load at startup, and those scripts can load objects into the REPL scope for you... though you'll need some way of accessing them via either Static methods (for stuff like singletons) or through the App class itself.

jasonwyatt avatar Apr 05 '18 17:04 jasonwyatt