Hi all,
within a B4XPages framework (from
@Erel) app I need to share some (app) global constants. For example:
Public Host As String = "https://acme.com"
Public WSNodeURL As String = Host & "/node/"
Public WSFormat As String = "?_format=json"
MY GOAL
I need to access them within all B4A and B4i components (modules, services, instanced classes). So I need a single and reliable point of access within both platform (Android and iOS).
WITHIN ANDROID
Within B4A app I can use "Starter" service to set the above public constants.
CROSS-PLATFORM ?
How I can set this within a cross platform application in order to refer to a single point of access for the above constants (so I can call "Starter.WSNodeURL " within B4A and B4i without code changes between the two platforms ?
Can I create a "Starter" code module within B4i and reference them like I do within B4A with "Starter.WSNodeURL" ?
'B4i Code module
Sub Process_Globals
Public Host As String = "https://acme.com"
Public WSNodeURL As String = Host & "/node/"
Public WSFormat As String = "?_format=json"
End Sub
Thanks in advance for your precious help
Luca.