Home > Back-end >  Delphi XE10 SetListener methods of how to call the Jar package, set up to monitor?
Delphi XE10 SetListener methods of how to call the Jar package, set up to monitor?

Time:09-19

After Jar into Pas, to use SetListener method is as follows:
 [JavaSignature (' com/esri/android/map/MapView ')] 
JMapView=interface (JViewGroup)//or JObject//SuperSignature: android/view/ViewGroup
[' {E5D559D4-41 ee - 4577-8 f6f - EEABC73FF2B9} ']
{Property the Methods}
.
The function getOnStatusChangedListener: JOnStatusChangedListener; Cdecl;//() Lcom/esri/android/map/event/OnStatusChangedListener;
Procedure setOnStatusChangedListener (onStatusChangedListener: JOnStatusChangedListener); Cdecl;//(Lcom/esri/android/map/event/OnStatusChangedListener;) V


I want to call JMapView setOnStatusChangedListener method, set the callback, after conversion to Pas, callback statement is as follows:
 JOnStatusChangedListenerClass=interface (JObjectClass) 
[' {48 c131aa a06 c7f - 4 - B65F 4-6 a06316a5437} ']
{the static Property the Methods}

{the static Methods}

{the static Property}
end;

[JavaSignature (' com/esri/android/map/event/OnStatusChangedListener ')]
JOnStatusChangedListener=interface (JObject)
[' {287754 fd - a7c EC7A - 4 - BA37-34 da2d3daaf6} ']
{Property the Methods}

{the methods}
Procedure onStatusChanged (P1: JObject; P2: JOnStatusChangedListener_STATUS); Cdecl;//(Ljava/lang/Object; Lcom/esri/android/map/event/OnStatusChangedListener $STATUS) V

{Property}
end;

TJOnStatusChangedListener=class (TJavaGenericImport) end;


Question: how do I instantiate a JOnStatusChangedListener object, set to JMapView setOnStatusChangedListener method?

CodePudding user response:

http://blog.csdn.net/ssxbxk/article/details/71642119

CodePudding user response:

Look, at least ten words
  • Related