public interface

Instrument.Provider

 com.parrot.drone.groundsdk.device.instrument.Instrument.Provider

Subclasses:

Drone, RemoteControl

Overview

Interface for an object capable of providing an Instrument.

Summary

Methods
public InstrumentgetInstrument(Class<Instrument> instrumentClass)

Gets an instrument.

public Ref<Instrument>getInstrument(Class<Instrument> instrumentClass, Ref.Observer<Instrument> observer)

Gets an instrument and registers an observer notified each time it changes.

Methods

public Instrument getInstrument(Class<Instrument> instrumentClass)

Gets an instrument.

Parameters:

instrumentClass: class of the instrument

Returns:

requested instrument, or null if it's not present

public Ref<Instrument> getInstrument(Class<Instrument> instrumentClass, Ref.Observer<Instrument> observer)

Gets an instrument and registers an observer notified each time it changes.

Parameters:

instrumentClass: class of the instrument
observer: observer to notify when the peripheral changes

Returns:

reference to the requested instrument