Wish [B4XPages] B4XPages.Delegate.Application_OpenUrl

Star-Dust

Expert
Licensed User
Longtime User
With B4XPages it is possible to delegate some events raised in the main page to the B4XPages pages.

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
 

Star-Dust

Expert
Licensed User
Longtime User
Thanks ?
 

Star-Dust

Expert
Licensed User
Longtime User
It may not work properly because B4XPages.GetManager.RaiseEvent() does not provide for the return of a value.

1600432053825.png
 
Top