getPilotingItf

abstract fun <PI : PilotingItf?> getPilotingItf(@NonNull pilotingItfClass: Class<PI>): PI

Gets a piloting interface.

Return

requested piloting interface, or null if it's not present

Parameters

pilotingItfClass

class of the piloting interface

<PI>

type of the piloting interface class

abstract fun <PI : PilotingItf?> getPilotingItf(@NonNull pilotingItfClass: Class<PI>, @NonNull observer: Ref.Observer<PI>): Ref<PI>

Gets a piloting interface and registers an observer notified each time it changes.

Return

reference to the requested piloting interface

Parameters

pilotingItfClass

class of the piloting interface

observer

observer to notify when the piloting interface changes

<PI>

type of the piloting interface class