B4J Question What events/method/properties are available for an object?

amorosik

Expert
Licensed User
How to know which events are usable by an object created for example a socket?
Is there a general way to 'see' the events / methods / properies available for each object?
 

Star-Dust

Expert
Licensed User
Longtime User
Yes
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Today I am better

1631185175007.png
 
Upvote 0

amorosik

Expert
Licensed User
Two more ways:

1. Write Private Sub + Tab + Space and it will open the events auto complete.
2. Hover over a type name.

If i try to follow n.1 on the code, writing

Private Sub AsyncStream

then press TAB, then SPACE, nothing appear
On B4J Ide 9.10
Where am I doing wrong?


B4X:
Sub Process_Globals
    Private server As ServerSocket
    Private astream As AsyncStreams
    End Sub

Sub AppStart (Args() As String)
    server.Initialize(61042, "server")
    server.Listen
    StartMessageLoop
End Sub

Sub server_NewConnection (Successful As Boolean, NewSocket As Socket)
    If Successful Then
        astream.Initialize(NewSocket.InputStream, NewSocket.OutputStream, "AsyncStream")
    End If
    server.Listen
End Sub

Sub AsyncStream_NewData (Buffer() As Byte)
    Log(BytesToString(Buffer, 0, Buffer.Length, "utf8"))
    astream.Write("received!".GetBytes("utf8"))
End Sub

Sub AsyncStream_Terminated     
    Log("astream_Terminated")
End Sub

Sub AsyncStream_Error()
    Log("astream_Error")
End Sub
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I try to search "Basic4android Library Browser" on B4X.COM forum but nothing appear
Where can i find this utility?
Unfortunately, I'm not finding the original thread either.
It had recently been updated. For the moment I would suggest that of Klaus.

But the problem may be that in some classes, the developer is not exposed to events.
Sometimes I have also kept events hidden for internal use, although in this case it could be an oversight
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
How about B4X Object Browser?
 
Upvote 0
Top