GSPilotingItfProvider
@objc
public protocol GSPilotingItfProvider
Protocol that provides functions to get piloting interfaces. Those methods should no be used from swift
-
Gets a piloting interface.
Note
This method is for Objective-C only. Swift must usefunc getPilotingItf:
Declaration
Swift
@objc(getPilotingItf:) func getPilotingItf(desc: ComponentDescriptor) -> PilotingItf?
Parameters
desc
requested piloting interface. See
PilotingItfs
api for available descriptors instances.Return Value
requested piloting interface
-
Gets a piloting interface and registers an observer notified each time it changes.
Note
This method is for Objective-C only. Swift must usefunc getPilotingItf:desc:observer
.Declaration
Swift
@objc(getPilotingItf:observer:) func getPilotingItfRef(desc: ComponentDescriptor, observer: @escaping (PilotingItf?) -> Void) -> GSPilotingItfRef
Parameters
desc
requested piloting interface. See
PilotingItfs
api for available descriptors instances.observer
observer to notify when the piloting interface changes
Return Value
reference to the requested piloting interface