With B4XPages it is possible to delegate some events raised in the main page to the B4XPages pages.
For example:
These are useful for Android, but for iOS it would be useful to delegate Application_OpenUrl. Which can be used for example when you use FirebaseAuth to send data within B4XPages pages.
For example:
For example:
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
End Sub
Sub Activity_Resume
B4XPages.Delegate.Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
B4XPages.Delegate.Activity_Pause
End Sub
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
B4XPages.Delegate.Activity_PermissionResult(Permission, Result)
End Sub
These are useful for Android, but for iOS it would be useful to delegate Application_OpenUrl. Which can be used for example when you use FirebaseAuth to send data within B4XPages pages.
For example:
B4X:
Private Sub Application_OpenUrl (Url As String, Data As Object, SourceApplication As String) As Boolean
Return B4XPages.Delegate.Application_OpenUrl (Url As String, Data As Object, SourceApplication As String)
End Sub