Function
form
|
Enter the Java source code of the function in this tab.
Use this function to reference the activity passed in:
CallingActivity.getPage(...)
Two frequently used Java API methods are createPage() and getPage(). Consult the JavaDocs topics for the PublicAPI interface to learn more about the available methods and their parameters.
See More about Function rules and Examples — Using inline Java and PublicAPI facilities for additional guidance on Java code you can use here.
Access the Parameters tab to compile the library, including this function, when you are ready to test.
Use the
String.equals()
Java method, not the == or
!= operators, to compare the value of a property to a
literal string or to the value of another property.
The Java code in a function rule is restricted to computations and limited types of side effects. You can't perform stateful processing, use member variables or extend classes in a function.