iOS Question Webview progress

Semen Matusovskiy

Well-Known Member
Licensed User
You can monitor estimatedProgress property. For example:
B4X:
    WebView1.LoadUrl ("https://www.b4x.com")

    Dim doubleValue As Double
    Dim doubleValueLast As Double
    Dim no As NativeObject = WebView1
    
    Do While doubleValue < 1
        doubleValue = no.GetField ("estimatedProgress").AsNumber
        If doubleValue <> doubleValueLast Then
            doubleValueLast = doubleValue
            Log (doubleValue)
        End If
        Sleep (1)
    Loop
 
Upvote 0
Top