Android Code Snippet [XUI][Custom Views] Create Event Name for CallSub

Just a simple method that makes creating event names for CallSub easier. Useful for Custom Views.

Method:
B4X:
Private Sub CreateEventName (SubName As String) As String
    Return $"${mEventName}_${SubName}"$
End Sub

To use:
B4X:
CallSub(mCallBack, CreateEventName("YourEvent"))
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…