Application is a special singleton object that allows you to handle application related events and holds other application related methods. The events can only be handled in the main module. The subs prefix should be Application. The Start event is raised when the application starts. Nav is the default navigation controller. The Active event is raised when the application becomes active. It is usually raised immediately after Start event and after resuming from the background. The InActive event is raised when the applications becomes inactive. This happens when there is an interruption such as a phone call or before the Background event. The Background event is raised when the process is moved to the background. You should expect the process to be killed a few seconds after this event. The Foreground event is raised when the app returns to the foreground after it was in the background (assuming that the process was not killed). The OpenUrl event is raised when another app has called OpenUrl with a scheme that this app has registered.
Events:
Start (Nav As NavigationController) Active Inactive Background OpenUrl (Url As String, Data As Object, SourceApplication As String) As Boolean Foreground ReceiveLocalNotification (LN As Notification) PushToken (Success As Boolean, Token() As Byte) RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)
A String with formatting attributes. Note that an AttributedString cannot be used instead of String unless the method explicitly expects an AttributedString.
A predefined object containing color constants. Colors are represented as Int values. The first byte is the alpha level and the other three values are the R, G and B components.
Date and time related methods. Date and time values are stored as ticks. Ticks represent the number of milliseconds since January 1, 1970 00:00:00 UTC. This value is too large to be stored in an Int variable. It should only be stored in a Long variable. DateUtils module should be used for time calculations when working with intervals larger than hours.
NativeObject is similar to B4A/B4J JavaObject. It allows you to call native methods and get or set fields. Note that only Objective C APIs can be used. C APIs cannot be called dynamically.