Loading...
Searching...
No Matches
com.navigine.idl.java.internal.RouteSessionBinding Class Reference
+ Inheritance diagram for com.navigine.idl.java.internal.RouteSessionBinding:

Public Member Functions

native boolean isValid ()
 
void addRouteListener (AsyncRouteListener listener)
 Method is used to add AsyncRouteListener class element which will notify async route events.
 
void removeRouteListener (AsyncRouteListener listener)
 Method is used for removing previously added AsyncRouteListener class element.
 

Protected Attributes

Subscription< AsyncRouteListenerweakAsyncRouteListenerSubscription
 

Detailed Description

Definition at line 12 of file RouteSessionBinding.java.

Member Function Documentation

◆ addRouteListener()

void com.navigine.idl.java.internal.RouteSessionBinding.addRouteListener ( AsyncRouteListener listener)
inline

Method is used to add AsyncRouteListener class element which will notify async route events.

Note
Do not forget to remove listener if it is no longer needed!
Parameters
listenerCorresponding AsyncRouteListener class.

Java code snippet:

// Add route listener to session
session.addRouteListener(asyncRouteListener);

Kotlin code snippet:

// Add route listener to session
session.addRouteListener(listener)

Reimplemented from com.navigine.idl.java.RouteSession.

Definition at line 35 of file RouteSessionBinding.java.

◆ isValid()

native boolean com.navigine.idl.java.internal.RouteSessionBinding.isValid ( )

Tells if this RouteSession is valid or not. Any other method (except for this one) called on an invalid RouteSession will throw java.lang.RuntimeException.

Reimplemented from com.navigine.idl.java.RouteSession.

◆ removeRouteListener()

void com.navigine.idl.java.internal.RouteSessionBinding.removeRouteListener ( AsyncRouteListener listener)
inline

Method is used for removing previously added AsyncRouteListener class element.

Parameters
listenerCorresponding AsyncRouteListener class to remove.

Java code snippet:

// Remove route listener
currentSession.removeRouteListener(asyncRouteListener);

Kotlin code snippet:

// Remove route listener
session.removeRouteListener(listener)

Reimplemented from com.navigine.idl.java.RouteSession.

Definition at line 42 of file RouteSessionBinding.java.

Member Data Documentation

◆ weakAsyncRouteListenerSubscription

Subscription<AsyncRouteListener> com.navigine.idl.java.internal.RouteSessionBinding.weakAsyncRouteListenerSubscription
protected
Initial value:
= new Subscription<AsyncRouteListener>() {
@Override
public NativeObject createNativeListener(AsyncRouteListener listener) {
return createAsyncRouteListener(listener);
}
}

Definition at line 21 of file RouteSessionBinding.java.


The documentation for this class was generated from the following file: