service / groovy.lang / GroovyHelper

GroovyHelper

open class GroovyHelper

Help class for used in groovy scripts

Constructors

<init>

Help class for used in groovy scripts

GroovyHelper()

Functions

field

Get value for any field of object

open static fun field(src: Any!, name: String!): Any!
open static fun field(clz: Class<*>!, name: String!): Any!

getActivities

Get list of created activities

open static fun getActivities(): MutableList<Activity!>!

getApplication

Get Application object instance

open static fun getApplication(): Application!

getRootView

Get Root view of particular screen

open static fun getRootView(index: Int): View!

getView

Get any view of particular screen

open static fun getView(rootViewIndex: Int, position: Int): View!

id

Get resource id value from string

open static fun id(id: String!): Int