This is some code @Alvaro_Fontan and I wrote, during the Xojo Developer Retreat:
Try
Var rx As New RegEx
rx.SearchPattern = "android|iphone|kindle|ipad"
rx.Options.CaseSensitive = False
Var userAgent As String = Session.Header("User-Agent")
Var match As RegExMatch = rx.Search(userAgent)
Return match <> Nil And match.SubExpressionCount > 0
Catch e As RegExException
Return False
End Try
I solved the issue with checking self.clientHeight and self.clientWidth.
Thank you, but we can’t rely on the documentation. I just posted another issue with downloading files.