iOS Question Create an Event for Google Map

mkh_fx

Member
Licensed User
Longtime User
in B4A i create an event for google map to track some Listener

B4X:
    Dim jo As JavaObject
    jo = gmap
    
    Try
        Dim e As Object = jo.CreateEvent("com.google.android.gms.maps.GoogleMap.OnCameraMoveStartedListener", "CameraMoveStarted", False)
        jo.RunMethod("setOnCameraMoveStartedListener", Array As Object(e))
        
        Dim e As Object = jo.CreateEvent("com.google.android.gms.maps.GoogleMap.OnCameraIdleListener", "CameraMoveEnd", False)
        jo.RunMethod("setOnCameraIdleListener", Array As Object(e))
    Catch
        Log(LastException)
    End Try
but i don't know how to convert this code for B4i
 
Top