Android Question Triggering Event Upon WebView_PageFinished

Discussion in 'Android Questions' started by DawningTruth, Jul 12, 2019.

  1. DawningTruth

    DawningTruth Active Member Licensed User

    I need to trigger a conditional event when WebView_PageFinished is started.

    Code:
    Sub MyListener

        // 
    Wait for SpecialPageFinished

        // 
    Do your thing

    End Sub

    Sub WebView_PageFinished(currentUrl As String)

        
    If specialCondition = True Then
            // Trigger SpecialPageFinished 
    Event
        
    End If   

    End Sub
    Any thoughts on the most elegant way to do this?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    Sub WebView_PageFinished(currentUrl As String)
        
    If specialCondition = True Then
             CallSubDelayed(Me, 
    "SpecialPageFinished")
        
    End If   
    End Sub
     
  3. DawningTruth

    DawningTruth Active Member Licensed User

    Thx E
    Thx Erel :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice