Bug? Accessing DesignerArgs.DesignerProperties

stevel05

Expert
Licensed User
Longtime User
I was interested to see which Properties are available in DesignerArgs.DesignerProperties so I tried:

B4X:
Public Sub Test(DesignerArgs As DesignerArgs)
    For Each k As Object In DesignerArgs.DesignerProperties.Keys
        Log(k)
    Next
End Sub

And got an error
java.lang.RuntimeException: method not supported. Use For Each instead.

Are these intended to be available?
 

stevel05

Expert
Licensed User
Longtime User
I have found a workaround for now I just realized it is a HashMap so :
B4X:
Dim M As Map
    M.Initialize
    M.As(JavaObject).RunMethod("putAll",Array(DesignerArgs.DesignerProperties))

    For Each k As Object In M.Keys
        Log(k)
    Next
 
Top